Friday, February 6, 2009

Смена пароля root в MySQL

1. /etc/init.d/mysql stop
2. mysqld_safe --skip-grant-tables &
3. mysql -u root
4. update user set password=password("parol") where user='root';
5. flush privileges;
6. mysql exit;
7. /etc/init.d/mysql stop
8. /etc/init.d/mysql start