Blog

Сброс root пароля mysql

1. /etc/init.d/mysql stop

2. mysqld_safe —skip-grant-tables &

3. mysql -u root

4. use mysql;
update user set password=PASSWORD(«NEW-ROOT-PASSWORD») where User=’root’;
flush privileges;
quit

5. /etc/init.d/mysql stop

6. /etc/init.d/mysql start
mysql -u root -p

Комментарии: