• I’ve been messing with the wp-config.php file and put in all the necessary data but it still gives me a message “Error establishing a database connection”.

    Here is what I have so far, can anyone tell me what I’m doing wrong? Also, do I need AUTH KEYS?

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘onl0816607103662’);

    /** MySQL database username */
    define(‘DB_USER’, ‘onl0816607103662’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘mypasswordhere’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘p50mysql141.secureserver.net’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

Viewing 9 replies - 1 through 9 (of 9 total)
  • You don’t need AUTH keys to get WordPress running.

    Are you sure your password is correct? That looks like a Godaddy ‘setup’. Might consider deleting and recreating the database and then resetting the values in wp-config.php.

    Is the information correct, are you sure the database is named exactly the same as the mysql user account..

    It’s not typical to name the user the same as the database, or vice versa, so that could be the problem, do you have a database with the same name as the user connecting to it?

    It’s not typical to name the user the same as the database

    If this account is on Godaddy, I believe they do create the user and the database name with the same ‘value’.

    Thread Starter ojcom

    (@ojcom)

    Hi guys, thanks for everyone’s advice! I went ahead and started with a fresh new wp-config.php file with my MySql info but I’m still getting the same problems. Is the MySql password supposed to be the same as my FTP password when logging into my hosting account?

    Usually the database password is NOT the same as your FTP or hosting login password.

    If you continue this thread, please tell us who your host is.

    Thread Starter ojcom

    (@ojcom)

    Hi Michael, GoDaddy is where I host my domain.

    With Godaddy you assign the database name. You assign the database password and you have to confirm that password. Make sure you choose a Version 5.0 database.

    Maybe this will help:
    https://www.thewebhostinghero.com/tutorials/godaddy-mysql.html

    Thread Starter ojcom

    (@ojcom)

    Hi Michael, I went to your link and found it helpful in changing my current password for my MySql database for WordPress (which is what I’m working on right now.)

    Now I’m getting a different message, do you know what I should do to fix this? I really appreciate your help! :o)

    Warning: include_once(/home/content/o/n/l/onlinejenny/html/blog/wp-includes/pomo/mo.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/o/n/l/onlinejenny/html/blog/wp-settings.php on line 307

    Warning: include_once() [function.include]: Failed opening ‘/home/content/o/n/l/onlinejenny/html/blog/wp-includes/pomo/mo.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/content/o/n/l/onlinejenny/html/blog/wp-settings.php on line 307

    Warning: require(/home/content/o/n/l/onlinejenny/html/blog/wp-includes/http.php) [function.require]: failed to open stream: No such file or directory in /home/content/o/n/l/onlinejenny/html/blog/wp-settings.php on line 352

    Hopefully you have a linux hosting account at Godaddy. You may need to reupload your WordPress files (see Uploading WordPress to a remote host).

    If you keep having problems, consider using Godaddy’s Hosting Connection feature to install WordPress.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘What’s wrong with my wp-config.php file?’ is closed to new replies.