标题: MYSQL用户等入问题?? [打印本页] 作者: tracydundun 时间: 2008-8-22 17:50 标题: MYSQL用户等入问题?? 建立两个MYSQL用户,分别如下:
host name
1 % test
2 localhost mysql
在登入的时候:
用户1:test mysql -u test -p 输入密码的时候显示错误,而不用密码能登录
[root@www ~]# mysql -u test -p
Enter password:
ERROR 1045 (28000): Access denied for user 'test'@'localhost' (using password: YES)
[root@www ~]# mysql -u test
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 48
Server version: 5.0.37 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
用户2:mysql 等入是正常
[root@www ~]# mysql -u mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 49
Server version: 5.0.37 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.