Title: Godaddy SQL problem
Last modified: August 18, 2016

---

# Godaddy SQL problem

 *  [nickeaston](https://wordpress.org/support/users/nickeaston/)
 * (@nickeaston)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/)
 * My domain is hosted by Godaddy; SQL appears to be managed by a third party called
   Starfield Technologies and there is no choice for the created database–it’s the
   same as the username. The only choices are new table name and number of fields.
 * The error message is: Error establishing a database connection
    This either means
   that the username and password information in your wp-config.php file is incorrect
   or we can’t contact the database server at localhost.
 * Here are the customized script lines:
    <?php // ** MySQL settings ** // define(‘
   DB_NAME’, ‘neaston’); // The name of the database define(‘DB_USER’, ‘neaston’);//
   Your MySQL username define(‘DB_PASSWORD’, ‘********’); // …and password define(‘
   DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

Viewing 15 replies - 1 through 15 (of 44 total)

1 [2](https://wordpress.org/support/topic/godaddy-sql-problem/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/godaddy-sql-problem/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/godaddy-sql-problem/page/2/?output_format=md)

 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174809)
 * Nick,
    Don’t post your password! (I replaced it with ****)
 * Things to check:
    – Make sure that your DB_USER is a member of the database with
   full privileges. – Make sure that you can use `localhost` as it’s possible you’re
   one of the 1% that need something else there.
 *  Thread Starter [nickeaston](https://wordpress.org/support/users/nickeaston/)
 * (@nickeaston)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174920)
 * Here is the response from Godaddy Support–it appears that this is a dead issue
   as far as installing WordPress is concerned, and should be a warning to other
   customers or potential customers of Godaddy…:
 * Dear Nick Easton,
 * Thank you for contacting customer support. Due to security issues we do not allow
   outside access to our databases. The only way to access your database is via 
   script from your hosting account or via the Online Manager (phpMySQLAdmin/MSSQLAdmin)
   interface.
 *  [xerocool](https://wordpress.org/support/users/xerocool/)
 * (@xerocool)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174921)
 * If the password was still there, you would of had more mysql problems *If you
   know what I mean. Heh*.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174925)
 * GoDaddy does not have a good history on these forums.
 * [http://wordpress.org/support/search.php?q=godaddy](http://wordpress.org/support/search.php?q=godaddy)
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174930)
 * No.
    GoDaddy do not appear to be wrong from my experience.
 * The vast majority of hosts, for sound security reasons, will not allow access
   to their databases from anywhere other than areas that they are happy are secure.
   The 3 hosts I have right now act in exactly this way and I am totally happy that
   this is the case.
 * The reply from GoDaddy above is good – why _exactly_ is it not ? I would guess
   that this is because of how space or a service has been sold.
 * As an aside, right now I have mySQL running on my machine. Would it be a good
   idea to open the ports up so anyone can connect ? I think not.
 *  [plbeane94](https://wordpress.org/support/users/plbeane94/)
 * (@plbeane94)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174973)
 * What did I do wrong?
 * <?php
    // ** MySQL settings ** // define(‘DB_NAME’, ‘plbeane94’); // The name
   of the database define(‘DB_USER’, ‘plbeane94’); // Your MySQL username define(‘
   DB_PASSWORD’, ‘******’); // …and password define(‘DB_HOST’, ‘localhost’); // 
   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_’
 * // 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’, ”);
 * /* Stop editing */
 * define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.
   php’); ?>
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174974)
 * I don’t know, plbeane94, what did you do? All I see here is quoted wp-config.
   php file.
 *  [plbeane94](https://wordpress.org/support/users/plbeane94/)
 * (@plbeane94)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174975)
 * it’s not working…
 * check it out:
 * plbeane94.com/wordpress/
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174976)
 * How so? Do you see any errors?
 *  [plbeane94](https://wordpress.org/support/users/plbeane94/)
 * (@plbeane94)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174979)
 * nope.
 * it’s saying it cant contact localhost.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174980)
 * Then something is wrong with either localhost, or your DB_HOST is not localhost.
 *  [plbeane94](https://wordpress.org/support/users/plbeane94/)
 * (@plbeane94)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174982)
 * isn’t GoDaddy’s Database Host ‘localhost’?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-174984)
 * No .. it’s usually something like mysql34.secureserver
    it lists it when the 
   db has been created.
 *  [plbeane94](https://wordpress.org/support/users/plbeane94/)
 * (@plbeane94)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-175000)
 * Now this is what shows up after I login at plbeane94.com/wordpress/wp-login.php:
 * Warning: Cannot modify header information – headers already sent by (output started
   at …………….
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/godaddy-sql-problem/#post-175003)
 * [http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent](http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent)

Viewing 15 replies - 1 through 15 (of 44 total)

1 [2](https://wordpress.org/support/topic/godaddy-sql-problem/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/godaddy-sql-problem/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/godaddy-sql-problem/page/2/?output_format=md)

The topic ‘Godaddy SQL problem’ is closed to new replies.

## Tags

 * [godaddy](https://wordpress.org/support/topic-tag/godaddy/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 44 replies
 * 16 participants
 * Last reply from: [rlpcomoe](https://wordpress.org/support/users/rlpcomoe/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/godaddy-sql-problem/page/3/#post-175492)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
