|
|
我装了mysql, 并且也设置了mysql的root password,但是我发现了一个奇怪的问题。
当我使用系统的root帐户进入系统是提示需要密码,如下:
- #mysql
- ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
复制代码
使用正确的用户名密码后正常进入:
- # mysql -u root -p
- Enter password:
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 18 to server version: 4.0.23_Debian-4-log
- Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
- mysql>
复制代码
可是当我用系统的普通用户进入时你看:
- $ mysql
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 19 to server version: 4.0.23_Debian-4-log
- Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
- mysql>
复制代码
居然畅通无阻?!!这个是为什么呀? |
|