大势趋007

每个人都是🏆 时时刻刻::::: 1 新的技术经常性尝试,经常性测试;;;;; 2 一线dba的经常性操作和总结,二线技术的经常性思考
  新随笔  :: 管理

error 1045 (28000): access denied for user 'root'@'localhost' (using password: yes

/etc/init.d/mysqld stop
mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
update user set password=password('pp') where user='root';
update user set authentication_string=password('pp') where user='root';
flush privileges;
/etc/init.d/mysqld restart
mysql -u root  -p