MySQL修改密码
修改MySQL的口令,通过命令:set password for …. 实现。
具体如下:
1 2 3 4 |
mysql> set password for 'root'@'localhost' = password('oracle'); Query OK, 0 rows affected (0.09 sec) mysql> |
——————————————————
Ending。
Adamhuan's Data Center - 【逻辑驱动数据】
数据玩物、代码屋、1/0游戏:(零和博弈)/ 禅宗意志 / 规则战争 / 解放数据力量 / 技术的飞速发展并没有改变这个世界,因为,这个世界从没有变,它只是越来越趋近于它本来的模样。
maybe in some system you can not change user password identified by host using :”update user set xxx… ” you only can change by : set password for xxx@xxx = password(‘xxx’) ;this is my Advise.