Yes, the problem is with your password. You need to create a root user.
Try the following (you can skip the first step if you have already started MySQL service) :
Code:
Click Start −> Run and type cmd in the box, click Ok. This will open a console window (or MS−Dos box). In the console
window enter the following commands and check that you receive the correct response:
Enter: cd c:\mysql\bin
Enter: mysqld−max−nt −−install
Response: Service successfully installed.
Enter: net start MySql
Console should say: The MySql service is starting.
Console should say: The MySql service was started successfully.
Congratulations you have installed MySQL; however, before we are done here we are going to make MySQL more
secure, by adding a password, so only you can change the databases.
At the console window type the following commands (replace new_password with your new password):
Enter: cd c:\mysql\bin
Enter: mysql −u root mysql
Response: Welcome to the MySQL monitor .....
Enter: UPDATE user SET Password=PASSWORD('new_password')
Enter: WHERE user='root';
Response: OK...
Enter: FLUSH PRIVILEGES;
Response: OK...
Enter: DELETE FROM user WHERE user='';
Response: OK...
Enter: DELETE FROM user WHERE Host='%';
Response: OK...
Enter: DELETE FROM user WHERE User='';
Response: OK...
Enter: DELETE FROM db WHERE Host='%';
Response: OK...
Enter: exit
Response: Bye
Enter: exit
Response: Console window closes.
Bookmarks