mysql -uroot -p password, you did not write the password.
If you forget your password, just reset it.
1. Command prompt 1 window: End the mysql service through taskkill /f /im mysqld-nt.exe 2. Start mysql through mysqld-nt.exe –skip-grant-tables 3. New Open the Command Prompt 2 window: execute mysql.exe and enter without entering a password. 4. update users set password=password('your password') where user='root'; 5. Close the command prompt 1 window and restart the MySQL service.
mysql -uroot -p password, you did not write the password.
If you forget your password, just reset it.
1. Command prompt 1 window: End the mysql service through taskkill /f /im mysqld-nt.exe
2. Start mysql through mysqld-nt.exe –skip-grant-tables
3. New Open the Command Prompt 2 window: execute mysql.exe and enter without entering a password.
4. update users set password=password('your password') where user='root';
5. Close the command prompt 1 window and restart the MySQL service.