Forums

[resolved] install.php results in: Error establishing a database connection (2 posts)

  1. lancerkind
    Member
    Posted 3 years ago #

    I've edited the wp-config.php (excerpt shown below), and created the DB, user, granted the user all permissions on the DB, and edited the keys. I've used mysql to login as the user with that password. Is there any other reason I'd get this error?

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'wordpress'); // The name of the database
    define('DB_USER', 'wordpressuser'); // Your MySQL username
    define('DB_PASSWORD', 'password'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');
    // Snip!

    Cheers,
    [sig moderated]

  2. lancerkind
    Member
    Posted 3 years ago #

    Hey, for some reason it connects to the database when I change localhost to 127.0.0.1.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.