如何修改mysql root密码 忘记MySQL ROOT密码是在MySQ使用中很常见的问题,可是有很多朋友并不会重置ROOT密码,那叫苦啊,特写此文章与大家交流: 1.编辑MySQL的配置文件:my.ini 一般在MySQL安装目录下有my.ini即MySQL的配置文件. 在此配置文件的最后添加如下一行: skip-grant-tables 保存退出编辑. 2.然后重启MySQL服务 在命令行下执行: net stop MySQL net start MySQL 3.设置新的ROOT密码 然后
You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. Step # 2: Start the MySQL (mysqld) server/daemon process with the --skip-grant-tables option so that it will not prompt for passwo