Search code examples
databasephpmyadminwampserver

phpMyAdmin - #1044 - Access denied for user ''@'localhost' to database


I am trying to set up my WordPress project, and I am using WampServer. In phpMyAdmin, I simply tried to create a new database, but I got this error : #1044 - Access denied for user ''@'localhost' to database 'wp'. I never had this problem before.


Solution

  • In WAMPServer when you run phpMyAdmin you are shown a login screen.

    By default :

    The Username = root

    And the Password is not set so you should not enter a password in the Password field.

    Then press the Go button to login.

    This will log you in as the root SuperUser, who can do anything on a MySQL Server.

    If you leave the Username blank, like it appears you did, you are logged in as an annonymous user with no rights to do anything much at all.