Installing WordPress on GoDaddy? This little tip makes it work.

2008 November 23
by Project-D

WordPress has a famous 5 minute installation, that works pretty well.  However if you follow all the steps while using GoDaddy, once you get to the wp-install.php step, you’ll find an error connectiong to the database.    

First you need to create a MySQL database on Godaddy.  Just click the MySQL option under the “Databases” tab in your hosting control center, you’ll be asked to fill in some info on the name of your database, the username you want, and the password.  Remember this, because you need to add it to your wp-config file.

So, let’s add it. Open up your wp-config file and look for these lines:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'putyourdbnamehere');

/** MySQL database username */
define('DB_USER', 'usernamehere');

/** MySQL database password */
define('DB_PASSWORD', 'yourpasswordhere');

/** MySQL hostname */
define('DB_HOST', 'localhost');

Now you’ll put your info in, so where it says: ’putyourdbnamehere’ you’ll put in the name of whatever you called your database, then your password etc.

Here’s the important part!

You’ll need to change this line:

/** MySQL hostname */
define('DB_HOST', 'localhost');

When viewing your list of databases in GoDaddy’s control panel, you’llsee a little pencil icon next to the name of your database, like this:

Click on the pencil and you’ll see a list of info like this:

 

MySQL Database Information
Status:  Setup
Host Name: p2nI30mysql16.secureserver.net
Database Name: YourDatabase
Database Version: 5.0
Description: stuff about your database
User Name: YourName

You’ll notice it’s all your info that you put in your wp-config file. Copy that funky long number after it says host name.

The 5 minute install says for the hostname: // 99% chance you won’t need to change this value - Well, with GoDaddy chance are 100% that you will have to change it.   

 So when you see this:

define(‘DB_HOST’, ‘local_host’);    in your wp-config file

Put that long Host Name value where it says “local_host” like this:

define(‘DB_HOST’, p2nI30mysql16.secureserver.net); 

Then, everything will work.  Phew.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

3 Responses leave one →
  1. 2009 January 30

    Hello, I can’t understand how to add your blog ( dproject.info ) in my rss reader

  2. 2010 January 8

    It worked! Thanks!

  3. 2011 February 18

    Smashing! Really terrific! This information is exactly what I was looking for – it was the simple solution to the error I was getting from the WordPress install. Thank you for the help! :D

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS