Question: host 'localhost' is not allowed to connect to this mysql?
Answer: ini file for the [mysqld] tag, under # The MySQL server , and restart the mysql server. You can now open phpmyadmin and go to the user table in the mysql database. Make sure that the value of the password attribute is empty and that the value of host attribute is localhost. ... ini and restart the mysql server.