PDA

View Full Version : Database Issue: (Resolved)


lordoblivgtool
11-12-2007, 11:12 PM
I created a database and a file isn't working I think the database isn't connected to the website?

Any help/advice?

Tyler
11-13-2007, 12:01 AM
Make sure your trying to connect to the right server, our MySQL server is mysql (NOT localhost)

Otherwise posting more information about the problem is always a good start. Posting without details is like me asking you why I cant download a song that i want... there are 90 million different reasons when it could be as simple as I havent tried, or as complex as a firewall issue or a corrupt file.

skatecardiff
11-17-2007, 07:23 PM
Make sure your trying to connect to the right server, our MySQL server is mysql (NOT localhost)

Otherwise posting more information about the problem is always a good start. Posting without details is like me asking you why I cant download a song that i want... there are 90 million different reasons when it could be as simple as I havent tried, or as complex as a firewall issue or a corrupt file.


Here's what i've inserted into the wp-config.php for wordpress:
__________________________________________________ ______

define('DB_NAME', '8266_database'); // The name of the database
define('DB_USER', '8266_database'); // Your MySQL username
define('DB_PASSWORD', '*****'); // ...and password
define('DB_HOST', 'mysql'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
__________________________________________________ ______

Yet still, wordpress keeps giving me an error saying:
__________________________________________________ ______

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 mysql. 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.
__________________________________________________ _______

PLEAAASE help me on here, or email me at getonyourboard@hotmail.co.uk

Thank you. :)

UnlimitedMB
11-18-2007, 01:05 AM
That looks right, must be wrong somehow or you wouldnt get that error.
Goto http://account.ulmb.com/mysql/ and click Config and copy/paste all the information exactly from that page into your config.php.

wwe
11-18-2007, 01:22 AM
Are you going through the auto-install or just editing the file manually?

skatecardiff
11-18-2007, 12:45 PM
That looks right, must be wrong somehow or you wouldnt get that error.
Goto http://account.ulmb.com/mysql/ and click Config and copy/paste all the information exactly from that page into your config.php.

Hmm, it seems to be right. I just looked on wordpress.org and someone wassaying that PHP5 + versions don't have built in support for MySQL, so that might be why it's not working.

Thanks for the help.

Joe.

skatecardiff
11-18-2007, 01:14 PM
WOW! :) Today, I tried changing the config.php file, and it worked!! :)
Must've been a bad day yesterday :)

Joe.