Support » Installing WordPress » problem connection database

  • Hi everyone
    I’m on the way to install wordpress since 3 hours and it won’t run. I don’t know why. I added every possible right to the user and added give all permission to the right database but there is still this site:
    Error establishing a database connection! This probably means that the connection information in your wp-config.php file is incorrect. Double check it and try again.
    * Are you sure you have the correct user/password?
    * Are you sure that you have typed the correct hostname?
    * Are you sure that the database server is running?
    WordPress Support Forums
    I have absolutly no idea what I’m doing wrong. Any one could help me?

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’ll help – want to email me a bunch of details and we’ll take it from there ?
    tamba2 at gmail dot com

    Well that’s very simple when you want to help me. I use the xampp installation which you can find here: and unzip the wordrpess to ../lamp/htdcos/.
    Note to XAMPP since version 1.4.7
    Because such very new versions like PHP 5 always should be handled with care we decided to include both current versions of PHP into XAMPP: PHP 5.0.x and PHP 4.3.x. If you find out your PHP application doesn’t work with PHP 5 you will be able to switch back easily to PHP 4.
    By the following command you can switch “back” to PHP 4.3.x:
    /opt/lampp/lampp php4
    And with the following command you can switch back to PHP 5.0.x:
    /opt/lampp/lampp php5
    If you forgot which version of PHP is in use simply use phpinfo() or call this command:
    /opt/lampp/lampp phpstatus
    Then run the browser and type localhost and cklick on phpadmin and add the database and the user (in database mysql -> table user) I give every permission to the user. Then I added in the table db the user with all permisson. But it isn’t running.
    Well another way, because I want to see which tables are created. Send me the Entity Relationship Modell of the tables of wordpress that would be a 1000 times easier.
    regards and thank you for your help!

    The two inserts to the mysql database:
    insert into user (Host,User,Password,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv,Reload_priv,Shutdown_priv,Process_priv,File_priv,Grant_priv,References_priv,Index_priv,Alter_priv) values (‘localhost’,’phest’,PASSWORD(‘phest’),’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’);
    insert into db (Host,Db,User,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv,Grant_priv,References_priv,Index_priv,Alter_priv) values (‘localhost’,’gugus’,’phest’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’);
    Anything forgotten?

    I use xampp.
    xampp > phpmyadmin > create database
    I didn’t add a user there.
    define('DB_NAME', 'wp1point3');
    define('DB_USER', 'root');
    define('DB_PASSWORD', 'secret');
    define('DB_HOST', 'localhost');

    I followed the xampp faq to set up a password.

    Hmm I’ve figured out the problem:
    I have just do that ->
    create database wordpress;
    grant all privileges on wordpress.* to user@localhost;
    and make an update on this row.
    Thank you for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘problem connection database’ is closed to new replies.