MYSQL重置root密码(Access denied for user 'root'@'localhost' (using password: YES))
1.停止MYSQL服务;在Ubuntu或Debian上sudoservicemysqlstop或者sudo/etc/init.d/mysqlstop在CentOS,Fedora,RHEL上:sudoservicemysqldstop或者sudo/etc/init.d/mysqldstop2.进入安全模式sudomysqld_safe--skip-grant-tables&PS:最后的&符号是要有的