|
wtorek, 04 lipiec 2006 |
Sorry there is no translation available yet. Please let me know if You want this article translated :-) Q: Jak zresetowac zapomniane hasło administratora bazy?
A: Wyłącz serwer bazy danych (najlepiej skryptem startowym).
Uruchom bazę z pominięciem uprawnień:
#mysqld_safe --skip-grant-tables --user=root
Teraz możesz zalogować się do bazy bez hasła i ustawić nowe:
#mysql -u root
mysql> UPDATE mysql.user SET Password=PASSWORD('newpwd')
-> WHERE User='root';
mysql> FLUSH PRIVILEGES;
|