Mysql root Passwort und ACL Probleme

Aus MHC-Wiki

Wechseln zu: Navigation, Suche

Hat man das Mysql root Passwort verloren oder probleme mit den Nezwerk ACL's (Hostfeld in der Usertabelle) dann hilft folgende Prozedur:

/etc/init.d/mysql stop
mysqld --skip-grant-tables &
mysql -u root

dann im Mysql:

mysql> use mysql;
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit

Ggf. auch das feld "host" mit % oder localhost besetzen.

Navigation