Mysql小事记录

忘记了mysql root密码

# service mysqld stop
# mysqld_safe --skip-grant-tables &
# mysql
mysql> use mysql;
mysql> update user set password=password('123456') where user='root';
mysql> flush privileges