• Hi all, I am trying to set up a wordpress site on my local machine using WAMPSERVER and I can get into the wordpress installation part fine, but I cant seem to get it to connect to the database no matter what settings I try. I went into PhpMyAdmin and tried to create a database there first, which worked (its an empty database) but when I try to put that information into the wordpress it just immediately comes back with error connecting to database. I noticed that the name of my server in PhpMyAdmin was MariaDB, not sure if that means anything? I tried putting that in instead of localhost in the databasehost field but still no joy. Maybe I havent setup the database properly beforehand.. What steps do i need to perform to ensure wordpress can see and connect to my database?

    • This topic was modified 5 years, 10 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • MariaDB is fine.

    You need to grant access to the db_user to be able to assign privileges in the database.
    Under phpMyAdmin, click users and see the access.
    Make sure it is the same user that is being assigned under your wp-config.php file under the root directory.
    Also, you can usually use :
    u: root
    p: <no password>
    on a local installation.

Viewing 1 replies (of 1 total)

The topic ‘Error connecting to database (another one!)’ is closed to new replies.