• chimi

    (@chimi)


    Respected,

    i made a database in myphpadmin, through xampp,

    databasename: wp_db
    dtabaseuser: db_user
    password: 123456
    db_host: localhost
    gave all privileges
    and export it to localhost.sql
    and upload it,

    in wp-config.php file i did the following*

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘wp_db’);

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

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

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

    it shows me the error
    Error establishing a database connection

    Please help me what should i do further

    Regards
    Chimi

Viewing 16 replies (of 16 total)
  • vpsdiscussions

    (@vpsdiscussions)

    If you are using windows based hosting then it may be possible that you need to use IP address of phpmyadmin instead of “localhost” in DB_Host value.

    Please contact your web hosting provider and confirm the value for DB_Host.

Viewing 16 replies (of 16 total)

The topic ‘problem problem and problem with db’ is closed to new replies.