Link to home
Start Free TrialLog in
Avatar of LZ1
LZ1Flag for United States of America

asked on

Wordpress on Godaddy Free Hosting

Hi Experts!!

I have a client that absolutley wants to stay on free Godaddy hosting and install Wordpress. As I'm sure you're aware, you can't simply "install" it from their free applications if your on free hosting.  I keep getting a
"Error establishing a database connection".

I've Googled, Binged and Yahooed everything under the sun and can't figure it out.  I just need to know that either there's a way to get this working or not.  I've changed the wp-config.php file numerous times, deleted and remade databases but nothing is connecting.

The full error 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 wordpress.db.4441573.hostedresource.com. This could mean your host's database server is down.

•Are you sure you have the correct username and password?
•Are you sure that you have typed the correct hostname?
•Are you sure that the database server is running?
If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
Avatar of nanharbison
nanharbison
Flag of United States of America image

Are you sure a database comes with godaddy free hosting? If it does, installing Wordpress is not that hard, as long as your database variables are correct. Have you checked your database info for typos?
Avatar of LZ1

ASKER

I've checked and triple checked.  I have all the variables in the wp-config.php file, but no go.  Also, I can have up to 10 MySQL DB's on one hosting account.
Can you post the contents of your wp-config file, but of course, change your user name to "username" and your password to "password" to protect that information.
And  your got:
 wordpress.db.4441573.hostedresource.com

from Godaddy, right?

Avatar of LZ1

ASKER

Yep.  I copied and pasted everything right from Godaddy's MySQL configuration page.

<?php



/**



 * The base configurations of the WordPress.



 *



 * This file has the following configurations: MySQL settings, Table Prefix,



 * Secret Keys, WordPress Language, and ABSPATH. You can find more information



 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing



 * wp-config.php} Codex page. You can get the MySQL settings from your web host.



 *



 * This file is used by the wp-config.php creation script during the



 * installation. You don't have to use the web site, you can just copy this file



 * to "wp-config.php" and fill in the values.



 *



 * @package WordPress



 */







// ** MySQL settings - You can get this info from your web host ** //



/** The name of the database for WordPress */
define('DB_NAME', 'my_name');

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

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

/** MySQL hostname */
define('DB_HOST', 'copied and pasted right from Godaddy');

/** 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', '');

/**#@+



 * Authentication Unique Keys and Salts.



 *



 * Change these to different unique phrases!



 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}



 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.



 *



 * @since 2.6.0



 */



define('AUTH_KEY',        'BVbi|P3iQ:s>W^V=GK6gl@g{+|~A{RX6~&uedp*$!$ fnJsz?$7JABkm8m)w9B|I');

define('SECURE_AUTH_KEY', '-]nL9+2C+D~3wF>7IWx,TL`:g6|hdDKKGdsm0~PL1|_# s#HE&;,9TK2h0u|r1U-');

define('LOGGED_IN_KEY',   '>44&1mI&@,oWn#T%S8%+V2[kmk!mPth&|N&yqvh>?#k46fn/1ub@KvT(0}dUn~iP');

define('NONCE_KEY',       '?|Ip9aZ1s|yUpn%|=+D|Lh./7T3<CR(n.#88 eY`!2^?<ztf@QB~vf,p6u?Ez4o;');





define('AUTH_SALT',        'put your unique phrase here');



define('SECURE_AUTH_SALT', 'put your unique phrase here');



define('LOGGED_IN_SALT',   'put your unique phrase here');



define('NONCE_SALT',       'put your unique phrase here');







/**#@-*/







/**



 * WordPress Database Table prefix.



 *



 * You can have multiple installations in one database if you give each a unique



 * prefix. Only numbers, letters, and underscores please!



 */



$table_prefix  = 'wp_';







/**



 * WordPress Localized Language, defaults to English.



 *



 * 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', '');







/**



 * For developers: WordPress debugging mode.



 *



 * Change this to true to enable the display of notices during development.



 * It is strongly recommended that plugin and theme developers use WP_DEBUG



 * in their development environments.



 */



define('WP_DEBUG', false);







/* That's all, stop editing! Happy blogging. */







/** Absolute path to the WordPress directory. */



if ( !defined('ABSPATH') )



	define('ABSPATH', dirname(__FILE__) . '/');







/** Sets up WordPress vars and included files. */



require_once(ABSPATH . 'wp-settings.php');

Open in new window

In godaddy, the database name and username are the same right? And all of the db hosts I have used on Godaddy have "secureserver" in the hostname. Are these things true for you?
This is probably a typo when you copied this info into experts exchange, but make sure you don't have a space inside the name, username, password, like you have done in the username:
'my_username '
Avatar of LZ1

ASKER

Nope.  No spaces.  I did read at one point though, that no matter what Godaddy will not allow you to setup WP on a free plan.
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
True, you could sign up for a free wordpress blog:
http://en.wordpress.com/signup/
and then have the domain name redirect to it, it will be something like yourclientsdomain.wordpress.com.

You can have the domain name redirect either just point to the free blog, or mask it so you only see yourclientsdomain.com, and not yourclientsdomain.wordpress.com.


Avatar of LZ1

ASKER

Thanks for everything thus far guys.  
Here is the godaddy link for their hosting plans:
http://www.godaddy.com/hosting/web-hosting.aspx?ci=8971 

WP is listed in there under Linux plan details.  (yes, it is the free Linux plan)

I'd rather not go the way of the iFrame if I can help it.  I may just need to tell the client that this will not work unless you pony up some $$$.  

Let me know if there is anything else I can do, otherwise I will award points and close the question
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LZ1

ASKER

Thanks guys!  I'm just going to make him pony up the $40/year for Godaddy hosting.