MySQL学习7_You must SET PASSWORD before executing this statement解决方法

来源:互联网 发布:xp关闭445端口 编辑:程序博客网 时间:2024/06/06 23:12

Linux rpm方式安装完MySQL之后

 

 

mysql>SET PASSWORD = PASSWORD('newpasswd');

求知若渴, 虛心若愚……

原文来自:http://www.cnblogs.com/xiaoit/p/3877875.html
使用的官方参考文档:http://dev.mysql.com/doc/refman/5.6/en/alter-user.html


其实上面的操作在:

MySQL学习2_CentOS下安装MySQL遇到问题:Access denied for user 'root'@'localhost'

中已经使用过


最后用到的是:
mysql>SET PASSWORD = PASSWORD('newpasswd');

newpasswd可以用其他字母代替。
0 0