If you receive a 1045 error, you may need to reset your password. Here are the official instructions for resetting the password: http://dev.mysql.com/doc/refman/5.1/en/resetting-permissions.html
If you find these instructions confusing, here’s another method.
1. Find the my.ini file (my.cnf for linux). On windows, the my.ini file is typically in your install directory: c:\Program Files\MySQL\MySQL Server 5.1\my.ini Open the file with notepad (or any text editor) and add the following entry under the [mysqld] section:
skip-grant-tables
Then, save the file and restart the MySQL service. This has disabled the grant tables so you should be able to log into mysql without any password ( no more 1045 errors ). Now, we need to reset the password.
2. Log …
[Read more]