以root用户登陆后,运行mysql,得到以下结果:
[root@nms root]# mysql
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
[root@nms root]#
以其他用户登陆后运行mysql就可以:
[likun@nms bin]$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 3.23.52-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>