• Resolved solidsquirrel

    (@solidsquirrel)


    So I’m trying to install WordPress on the most basic godaddy hosting package. I created the MySQL database, edited the wp-config.php file, etc. Unfortunately, WordPress can’t make a connection to the database.

    Just to clear things up, is DB_Name usually a name or a URL/location?

    To give you an idea of what I’m working off of / what might have been excluded in the directions, here are the directions I was following: https://abeautifulwww.com/2007/02/28/installing-wordpress-on-godaddy/

Viewing 8 replies - 1 through 8 (of 8 total)
  • When you create a MySQL database at Godaddy, you give it the user name. The user name is in turn, also the database name so your DB_NAME and DB_USER in wp-config.php will be the same value.

    Just so you know, you should have a Linux (PHP) or Deluxe Windows with CGI for WordPress to work.

    How to upgrade your existing hosting plan with GoDaddy.
    1. Login to your account at https://www.godaddy.com
    2. Hover over Hosting & Servers, click on My Hosting Account
    3. Click on your domain name under the Hosting Account column
    4. On the right, click on Upgrade/Downgrade Hosting Plan
    5. Select the new plan. Any plan with PHP is preferable, but a Deluxe Windows with CGI will also work.

    Also, please note WordPress does not work with accounts that Godaddy calls “Free with Domain”.

    Thread Starter solidsquirrel

    (@solidsquirrel)

    Thanks for the reply –

    I’m pretty sure the problem is on godaddy’s side – I can’t imagine anything would be wrong with the wp-config.php file. I’ll contact their customer support when I get home.

    (By the way, I do have Linux hosting, but something seems off; There’s a section in the MySQL database control panel that gives an example of how a PHP file would access the database, and it looks different than the wp-config.php file.)

    The wp-config.php file has the settings used by other WordPress scripts to connect to the database.

    Your job, if you decide to undertake it, is to make sure you put the correct values in that file. Failure to do so could result in severe consequences for all mankind!

    Thread Starter solidsquirrel

    (@solidsquirrel)

    I might as well post the wp-config.php file – Here’s what’s up there (minus the password, of course):

    <?php
    
    // ** MySQL settings ** //
    
    define('DB_NAME', 'hotjuicyzebra');    // The name of the database
    
    define('DB_USER', 'hotjuicyzebra');     // Your MySQL username
    
    define('DB_PASSWORD', 'password'); // ...and password
    
    define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
    
    define('DB_CHARSET', 'utf8');
    
    define('DB_COLLATE', '');
    
    // 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-content/languages.
    
    // For example, install de.mo to wp-content/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 considered removing the ‘s surrounding the database name/pass/location, but I don’t think that’s the problem.

    edit: Oh wow, I just realized that maybe I should have removed the lines starting with // with the instructions… Hopefully that’s not the problem, or I’ll feel like an idiot.

    You should NOT remove anything. The only editing you need to do: the 4 pieces of info – which you did. If it still gives you error message… one or more of them are incorrect.

    Thread Starter solidsquirrel

    (@solidsquirrel)

    Hey – found the problem. Turns out “localhost” is a no-go for godaddy hosting accounts, but I figured it out. Thanks for the quick replies, guys!

    but how do you set up the tables in godaddy?

    This is my problem also. I can’t get the install.php to run. I keep getting the same database error.

    https://www.skybluewindowcleaningservice.com/wp-admin/install.php

    ClIcK for example of what’s happening.

    P.S. I’m also using Godaddy.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Newbie has troubles with MySQL Database’ is closed to new replies.