首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

MySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost&#

2014-04-26 
MySQL ERROR 1045 (28000): Access denied for user root@localhost# /etc/init.d/mysql stop# mysqld_saf

MySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost'

# /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>

搞定!

热点排行