This is a problem that hounds PHP developers quite often. Even using WAMP it still gives this error which confused me because I did not encounter any problems when I added a new user account in MAMP.

I did exactly the same steps when adding a new database user account in WAMP and it always gives the Access denied for user ‘root’@’localhost’ (using password: YES).

To get around this problem, it is always best to use a different user account other than root. To add a new user account with the same privileges are a root user account, do the following steps:

- click the database and go to PRIVILEGES tab
- click EDIT PRIVILEGES on the entry named user:root and host:localhost
- scroll down. there should be a login information section. in the user name field, type a new username
- set a password
- then click the GO button below it. it should create the new user account with the same privileges as the root user account.

A note to consider: Make sure you change the password of the root user account because by default the password is blank.

You might encounter an error message that says something like “Error 2### HY### Connection Time Out” in MySQL when importing huge backup files to your database. This totally perplexed me as I thought at first the problem came from within my backup file. Maybe the SQL statements were incorrect or something.

Turns out, you have to set max_allowed_packet = 32M in either your MySQL’s config file (my.cnf or my.ini) to increase the memory. You will then have no problems importing your file back to the database. Just remember, if it is a big file, it will take some time to finish importing everything.

If during your MySQL installation you get an error that says something like “setup ended prematurely”, and you are trying to install it in a Windows Server 2003 box, chances are the MySQL installer version that you are using is past 5.1.34

I had that same problem when I tried to install version 5.1.36 of MySQL. There is a bug which is the reason why it gives that error and does not proceed with the installation. Same goes with version 5.1.35. Just download the version 5.1.34 and use that

Related Posts Plugin for WordPress, Blogger...