mySQL root-Passwort vergessen

Für den Fall, dass das root-Passwort des mysql-Servers vergessen wurde, ist folgender Tipp hilfreich:

/etc/init.d/mysql stop
echo "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');" >~/setrootpassword.sql
mysqld_safe --init-file=~/setrootpassword.sql
#[ctrl]+[c]
/etc/init.d/mysql start
rm -f ~/setrootpassword.sql

Quelle: huschi.net

0 0 votes
Article Rating
Subscribe
Benachrichtige mich zu:
0 Comments
Inline Feedbacks
View all comments