+ -
当前位置:首页 → 问答吧 → Access denied for user 'mysqladmin'@'localhost' (using passw

Access denied for user 'mysqladmin'@'localhost' (using passw

时间:2008-09-19

来源:互联网

刚刚在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.

mysql>

作者: yinhezixun   发布时间: 2008-09-19

用户被禁言,该主题自动屏蔽!

作者: 淡秋   发布时间: 2008-09-19

什么版本的,默认居然是mysqladmin用户

作者: xueseboss   发布时间: 2008-09-19

默认没有mysqladmin用户吧,好像默认是root

作者: zcl8840   发布时间: 2008-09-19

回复 #5 vermouth 的帖子


缺省是用root用户吧

作者: 楓葉寶寶   发布时间: 2008-09-19

看看,也在用mysql不过是集成了,呵呵!!!

作者: qiusibo   发布时间: 2008-09-19