mysql修改管理员密码
mysql修改管理员密码
杀掉mysql进程
kill `cat /data/mysqldata/3306/mysql.pid`
禁止连接禁止验证方式启动mysql
mysqld_safe --defaults-file=/data/mysqldata/3306/my.cnf --skip-grant-tables --skip-networking&
修改管理员密码(本环境已将管理员更名为system)
mysql
update mysql.user set password=password('xxxxxx') where user='system';
重启mysql
mysqladmin shutdown
mysqld_safe --defaults-file=/data/mysqldata/3306/my.cnf &

浙公网安备 33010602011771号