Chinaunix首页 | 论坛 | 博客
  • 博客访问: 606007
  • 博文数量: 201
  • 博客积分: 3076
  • 博客等级: 中校
  • 技术积分: 2333
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-02 19:44
文章分类

全部博文(201)

文章存档

2010年(118)

2009年(83)

我的朋友

分类:

2010-07-17 14:03:59

ubuntu:
  sudo apt-get isntall mysql-server
  sudo apt-get install mysql-client

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YSE)


重改密码!

# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit

# /etc/init.d/mysqld restart
# mysql -uroot -p
Enter password:

mysql>


----------------------------------------------



阅读(615) | 评论(0) | 转发(0) |
0

上一篇:html学习笔记

下一篇:css

给主人留下些什么吧!~~