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

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

时间:2008-10-06

来源:互联网

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

作者: ㊣o℃微笑   发布时间: 2008-10-06

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

作者: ac2004   发布时间: 2008-10-06

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

作者: ouer123   发布时间: 2008-10-06

mysqladmin 一般说的是那个管理命令吧?

作者: love华   发布时间: 2008-10-06

缺省是用root用户吧

作者: kaerdd   发布时间: 2008-10-06

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


=700) window.open('http://linux.chinaunix.net/bbs/attachments/month_0808/20080823_d980fd4f2e57d9c324faPufkM9K9mxJQ.png');" onload="if(this.offsetWidth>'700')this.width='700';if(this.offsetHeight>'700')this.height='700';" >


=700) window.open('http://linux.chinaunix.net/bbs/attachments/month_0808/20080823_4f249d941cdc43b31a6aIFjVoIAZcmYZ.png');" onload="if(this.offsetWidth>'700')this.width='700';if(this.offsetHeight>'700')this.height='700';" >

作者: jingjingboy   发布时间: 2008-10-06