• Hello all.

    I have done following settings in wp-config.php
    define(‘DB_NAME’, ‘wordpress’);

    /** MySQL database username */
    define(‘DB_USER’, ‘root’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘ ‘);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    I have also made a database named wordpress in phpmyadmin
    But i am not able to run on localhost and getting error

    Thank you in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Error establishing a database connection’ is closed to new replies.