• 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

Viewing 15 replies - 1 through 15 (of 15 total)
  • 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?

    Searching is an awesome thing. ??

    https://www.ads-software.com/support/topic/48431

    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 www.ads-software.com 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?

    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.

    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?

    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

    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

    Moderator James Huff

    (@macmanx)

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

    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.

    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.

    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.

    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’);
    ?>

    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

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘no database connection / godaddy / config.php’ is closed to new replies.