Forums

no database connection / godaddy / config.php (16 posts)

  1. slaughter
    Member
    Posted 3 years ago #

    Hi there.

    I've been reading the many posts concerning godaddy (it works for some, therefore it can work), the config.php file, etc. i'm getting the 'can't connect to database' error.

    my config.php looks like this:

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', '*****'); // The name of the database
    define('DB_USERNAME', '*****'); // Your MySQL username
    define('DB_PASSWORD', 'xxxxx'); // ...and password
    define('DB_HOST', 'mysql69.secureserver.net'); // 99% chance you won't need to change this value

    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'

    I have also 'commented out' the 'die' line as suggested by a poster to stop the other mysql error message that was coming up, ie

    //if ( !extension_loaded('mysql') )
    //die( 'Your PHP installation appears to be missing the MySQL which //is required for WordPress.' );

    in the settings.php file.

    i have checked EVERYTHING. i have tried 'localhost' and the server IP for 'localhost' but according to most posts here concerning godaddy, it needs to be as I have it, that is taken from the database manager settings. username and pass of course are correct.

    still getting the 'can't connect to database' error.

    godaddy support is terrible, they have not helped at all.

    any suggestions?

    cheers

  2. moshu
    Member
    Posted 3 years ago #

    username and pass of course are correct
    Whenever I see this I feel an urge to bet for $1 million :)

    What aboout the DB name?

  3. Viper007Bond
    Member
    Posted 3 years ago #

    Searching is an awesome thing. :)

    http://wordpress.org/support/topic/48431

  4. sebana
    Member
    Posted 3 years ago #

    slaughter, i got the same thing. have you got any solution now? it seems that the destinated mysql server isn't responding to my pings. do you know if it's supposed to be like that?

    and yes their support was TERRIBLE.

    and viper007, thanks for the searching suggestion, but right now you're making me feel like an idiot because i've already found that site and details long before i sought wordpress.org for help. i think this is NOT such a general problem as to finding the correct database address as it is now.

    any ideas guys?

  5. podz
    Support Maven
    Posted 3 years ago #

    Have you tried deleting the wp-config.php from the server then re-uploading one the one you detail above ?
    If you are over-writing a file it may be doing so incorrectly so it's worth a go.

  6. sebana
    Member
    Posted 3 years ago #

    never thought of that. but i did try a delete and re-upload. doesn't work. =(

    it's getting highly irritating, if all the settings are correct, why wouldn't it work?

    and why so many such problems only from godaddy.com?

  7. podz
    Support Maven
    Posted 3 years ago #

    I've installed in GD a number of times without a problem.
    Assuming there is no GD issue, then it could be the config.
    DB_Host is correct.
    The GD cpanel displays the db_name and db_user, so if they are correct, have you deleted the password and retyped it ? Is there a chance that there is something wrong there ?
    You are definitely using a mysql password and not an account or ftp password - if they could be different ?

    There are also Two error messages that WP displays:
    - we cannot connect
    - we could connect but cannot find

    The first is not concerned with DB_NAME at all so that can be ruled out as a cause.
    The second is not concerned with DB_HOST or DB_PASSWORD

  8. wblr
    Member
    Posted 3 years ago #

    Hi, I am having the exact same problem. Except, I think I know the issue, but can't solve it. When you setup a database and user, you need to set the privledges to all, or whatever. I've tried to locate where I can do this in godaddy, but I can't find it. Does anyone have the answer?

    Thank you

  9. macmanx
    Member
    Posted 3 years ago #

    Did you follow this guide?

    http://wordpress.org/support/topic/46840

  10. wblr
    Member
    Posted 3 years ago #

    Yes, I've done this before. For some reason, it's not working. My hosting is Linux with php too.

  11. u02811
    Member
    Posted 3 years ago #

    sebana here (i should really remember my passwords)

    finally got e problem solved. not with wordpress actually, godaddy had problems with their mysql servers.

    darn it.

  12. deadpiss
    Member
    Posted 3 years ago #

    hi,

    I have also encountered the same bloody problem.. Is there any problem with the config.php? Bloody piss with godaddy. Can someone help me?
    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'georgetee'); // The name of the database
    define('DB_USER', 'georgetee'); // Your MySQL username
    define('DB_PASSWORD', '*****'); // ...and password
    define('DB_HOST', 'mysql85.secureserver.net'); // 99% chance you won't need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    /* That's all, stop editing! Happy blogging. */

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>
    I followed the thread before and changed my hostname but there is no difference.

  13. sguler
    Member
    Posted 3 years ago #

  14. deadpiss
    Member
    Posted 3 years ago #

    Yep, i did created a database for my wordpress but it still read that after i installed it. the config.php is the problem remains the same.

  15. wwebby
    Member
    Posted 2 years ago #

    I am so frustrated as well. I have spent 2 hours pouring over these threads and still can't get wordpress to install on godaddy. I have the linux economy plan. I have created the database, accurately recorded the db name, username and password, updated my config.php file and I still get a page that says Error establishing a database connection. Here is my config.php file:
    ______________________________________________________
    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'newbrainwp'); // The name of the database
    define('DB_USER', 'newbrainwp'); // Your MySQL username
    define('DB_PASSWORD', 'hormones'); // ...and password
    define('DB_HOST', 'mysql279.secureserver.net'); // 99% chance you won't need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    /* That's all, stop editing! Happy blogging. */

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

  16. wwebby
    Member
    Posted 2 years ago #

    Oh, and I also looked for the wordpress 1-click install link that someone suggested but there is not "value application" link available. The only choices under "content" are:

    Optional Enhancements

    Form Mail

    Hosting Metropolis

    FTP Client

Topic Closed

This topic has been closed to new replies.

About this Topic