ITeye博客

Ubuntu Server Install MySQL

androider · 2010-05-01 16:09 · Ubuntu · 操作系统 · Markdown

sudo apt-get install mysql-server libmysqlclient15-dev mysql-client

但是无论如何连接都是:

ERROR 1045 (28000): Access denied for user ….@localhost (using password: NO)

后来发现:/etc/mysql/debian.cnf里面居然是明文的密码

成功登录

grant all privileges on *.* to root@localhost;

flush privileges;

修改root密码

update mysql.user set password=password(”newpassword”)where user=”root”;

flush privileges;

用root新密码登录即可

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。