MySQL root密码忘记后更优雅的解决方法 https://www.jb51.net/article/143453.htm /usr/bin/mysqld_safe --defaults-file=my.cnf --skip-grant-tables --skip-networking &/usr/bin/mysql -S /var/lib/mysql/mysql.sockupdate mysql.user set password=password('123456') where host