mysql修改root密码

#/usr/local/mysql/bin/mysql stop

#/usr/local/mysql/bin/mysqld_safe --skip-grant-tables & 

#mysql -u root -p (无须输入密码)

#USE mysql;

#UPDATE user SET Password=password("newpassword") WHERE User="root";

#FLUSH PRIVILEGES;

#exit;

#/usr/local/mysql/bin/mysql start

你可能感兴趣的:(mysql)