WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection (6 posts)

  1. albert kwofie
    Member
    Posted 5 years ago #

    I have followed the instruction on the read me file and have than all that it ask but when I try to install is givin me (Error establishing a database connection)
    I dont know if I have missed some or not and I dont know if I have to create the data base by my self or wordpress will do that for me automaticaly
    Thank you

  2. capelyddol
    Member
    Posted 5 years ago #

    If you're unsure about databases you need to study in detail the WordPress installation instructions, including their video tutorials. You'll find them here - http://codex.wordpress.org/Installing_WordPress#Detailed_Instructions

  3. stvwlf
    Member
    Posted 5 years ago #

    hi

    if you installed wordpress yourself (did not use a a one-click installer such as Fantastico or similar from your web hosting account), then yes, you have to create the database yourself in your webhosting control panel. WP does not do that for you.

  4. SteveKeen
    Member
    Posted 5 years ago #

    I already have a WordPress database (www.debtdeflation.com/blogs) and after the install I have had a series of errors, culminating in "Error establishing a database connection".

    I believe that I have properly specified the database in my wp-install.php file, but I might have have made an error in copying since I got a new set of SQL database files installed, and WordPress seemed to believe that this was a new blog--rather than one with 130 members and 2000 readers a day.

    The database information in my wp-config file is:

    define('DB_NAME', 'steveke_AUS'); // The name of the database
    define('DB_USER', 'steveke_steve'); // Your MySQL username
    define('DB_PASSWORD', 'keeping this private of course!'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');

    What might I have done wrong?

    Steve

  5. jacules
    Member
    Posted 5 years ago #

    I have the same problem however my wp-config.php details are correct as the database info... yet still refuses a connection. And yeah my server is running, the database is fine, but still weird with no connection... I posted about mine already but here the links...

    http://illume.nu/newwordpress/

  6. obscure
    Member
    Posted 5 years ago #

    jacules - you already have a thread open and people helping you. Please don't confuse things by hijacking someone else's thread as well.

    SteveKeen

    ....but I might have have made an error in copying since I got a new set of SQL database files installed,

    What exactly do you mean by new database files? Has the server been changed or a new database set up? Given that you think you may have made an error that would be the first thing to check, double check and then check again.

    Also have you tried connecting to the database directly with PHPMyAdmin in order to check that the connection details are right?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags