标题: Access denied for user 'mysqladmin'@'localhost' (using password: NO) [打印本页] 作者: elveny 时间: 2008-08-20 16:25 标题: Access denied for user 'mysqladmin'@'localhost' (using password: NO) 刚刚在Linux Red Hat9上面安装了MySQL(通过源码包安装的),其他的都比较正常,可以start和stop,但是按照网上的说法,start之后就可以测试MySQL了,为什么我的不行呢?
[mysqladmin@easyeb mysql]$ mysql
ERROR 1045: Access denied for user 'mysqladmin'@'localhost' (using password: NO)
大侠们...靠你们了..
解决了:
因为默认mysql默认是通过'mysqladmin'登录MySQL数据库,但是明显,在此时数据库中还没有这个用户,当然就不能登录了。
[mysqladmin@easyeb mysql]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 5.1.22-rc
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.