Forums

MySQL connection problem during install (2 posts)

  1. griblik
    Member
    Posted 5 years ago #

    There's probably a simple answer to this, but I'm kinda stuck.

    I'm trying to install wordpress locally (so I can work on themes). I've got to the wp-admin/install.php step, and I'm getting an "Error establishing a database connection" message.

    I've edited my wp-config.php file to

    define('DB_NAME', 'wordpress');    // The name of the database
    define('DB_USER', 'wordpress');     // Your MySQL username
    define('DB_PASSWORD', 'password'); // ...and password
    define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value

    I'm guessing the problem is around here somewhere. However, on the command line,
    mysql -u wordpress -p password
    gets me into a mysql prompt without a problem, so I know the server is running and the password is what I thought it was. From there,
    show databases;
    displays a list that includes the wordpress database.

    I've tried granting all privileges to wordpress@localhost again, and turning off the firewall, but to no avail.

    Does anyone have any suggestions as to what I could try next? From what I know it should all be working now, but it's not. Any help would be much appreciated.

    G

  2. griblik
    Member
    Posted 5 years ago #

    Not to worry. I started working on the live site instead and I guess this isn't really a WordPress support question anyway. I just wanted a local install because I thought it would take time to get the hang of the templates and themes for wordpress.

    As it turns out, 2 hours later I've pretty much got the blog skinned.

    Much respect to the devs - you've come up with something that's marvellously flexible and simple to work with. Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic