Mysql初始化root密码

use mysql
update user set password=PASSWORD('root') where user='root';
flush privileges;


注:
MySQL不能登录时, 可采用以下命令, 临时打开应用
mysqld -nt --skip-grant-tables

猜你喜欢

转载自lullabyus.iteye.com/blog/1318518