Access verweigert für Benutzer 'root @ localhost' (mit Passwort: NO)
Ich bin neu in MySQL, ich versuche, Wordpress in meinem Windows-Desktop auszuführen und es braucht MySQL.
Ich installiere alles mitWeb Platform Installer
die von Microsoft zur Verfügung gestellt. Ich habe nie ein root-Passwort für MySQL festgelegt und im letzten Schritt der Installation von WordPressit nach dem root-Passwort für MySQL gefragt.
Was ist das Standardkennwort für root (falls vorhanden) und wie kann es geändert werden?
Ich versuch
mysql -u root password '123'
aber es zeigt mir
Access denied for user 'root@localhost' (using password:NO)
danach versuche ich
mysql -u root -p
aber es fragt nach einem Passwort, das ich nicht habe
Danke im Vorau
Update: Wie Bozho sagte, habe ich die folgenden
1 - I stoped MySql Service from Windows services
2 - Open CMD
3 - change location to cd c:\program files\mysql\bin
4 - write this command
mysqld --defaults-file="C:\\program files\\mysql\\mysql server 5.1\\my.ini" --init-files=C:\\root.txt
5 - Command run with a warning about characterset which I mentioned below
6 - I start MySql Service from windows services
7 - in command line I write
mysql -u root -p
EnterPassword: 123 // 123 was the password
8 - the commandline shows following bug
Access denied for user 'root@localhost' (using password:**YES**)
Ich warte darauf, von dir zu hören