在mysql命令行中执行
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456'); 
GRANT ALL PRIVILEGES ON *.* TO 'root' @'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
flush privileges;
 
若以上方法行不通则用:
use mysql; 
UPDATE user SET Password=PASSWORD('123456') where USER='root';
flush privileges;  
 
以上是别人的方法,我使用第二个顺利的解决了问题
转至:http://blog.csdn.net/ocupid/article/details/53947202

相关文章:

  • 2021-12-21
  • 2021-10-04
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2021-06-22
  • 2021-11-23
相关资源
相似解决方案