MYSQL数据库问题

MYSQL数据库问题

# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 21 to server version: 4.1.11-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
这样的显示结果是不是说明数据库没有密码呀
mysql> show grants;
+---------------------------------------------------------------------+
| Grants for root@localhost                                           |
+---------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
+---------------------------------------------------------------------+
1 row in set (0.00 sec)
然后这样的是不是说明数据库root拥有权限,有人说我没有对数据库田加权限。
我添加密码的时候:出现
# mysqladmin -u root -password "3210021"
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'

如果需要远程用MySQL-Front这样的软件管理MYSQL数据库要怎么样配置。请帮忙解释一下。      
设置密码
mysqladmin -u root -p password xxxxxx

给其他软件设置用户权限,可以添加一个用户
GRANT ALL PRIVILEGES ON yourDB.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;      
我记得用mysqladmin设置密码是用下面的命令,楼上的是不是有点失误
mysqladmin -u root password xxxxxx      
mysql> show grants;+---------------------------------------------------------------------+| Grants for root@localhost |+---------------------------------------------------------------------+| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |+---------------------------------------------------------------------+1 row in set (0.00 sec)然后这样的是不是说明数据库root拥有权限,有人说我没有对数据库田加权限。我添加密码的时候:出现# mysqladmin -u root -password "3210021"mysqladmin: connect to server at 'localhost' failederror: 'Access denied for user 'root'@'localhost' (using password: YES)'首先 ROOT要对MYSQL操作有权限#/mysql/bin/#usr/local/mysql/bin/mysqladmin -u root -password #输入密码OK/#./mysql -u root -p 你设置的密码mysql>show databases;(显示数据库)