• I am trying to install wordpress in XAMP but error establishing a database connection is given. I provided database details in wp-config.php file also still giving above mentioned error

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Generally “Error Establishing Database Connection” error notification occurs for a obvious reason if any database configuration setting option values are not appropriately set.

    And following are required parameters to look out for:
    a) Database name
    b) Database username
    c) Database password
    d) Database host

    If all the above parameters are well set & confirmed then check if the database is set up properly & running or is their any issue from web hosting providers end.

    Also to ensure things are correct with database, just create a blank plain PHP file & check if database connection works.

    Hope this will help to sort out your issue.

    Thanks.

    How do you create the database and the user in Xampp ?

    how to you setup the database host parameter ?

    Hi,

    Database can be created using PHPMyAdmin, or any Mysql Client.

    There is a nice description already posted on codex help guide. I am sharing a link for reference, and a help guide to setup a database before doing an installation:

    http://codex.ww.wp.xz.cn/Installing_WordPress#Step_2:_Create_the_Database_and_a_User

    If required please contact to your web hosting provider for an assistance over database setup.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

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