For lack of anything else to do with cannonballguy.com, I decided to make it a blog and headed straight for WordPress which seems to be the standard these days...
My problem is that I changed the wp-config.php but I guess I got something wrong because cannonballguy.com says:
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 DB_HOST.
The hosting accounts main domain is kaziaz.com and cannonballguy.com is an addon domain. Is this why
define('localhost', 'localhost');
won't work?
What am I doing wrong? What should I put as the DB-host?
Comments
Just make sure that your username and password are right for your database. Also check to see if that particular user has been added to the database in your cPanel.
The Royal Ram
Just edit the following variables and upload to your server just to test if you are connecting using the right details. If not then its a problem with WordPress itself.
[PHP]<?php
$server = "localhost";
$dbuser = "username";
$dbpass = "password";
$dbname = "databasename";
echo "Attempting...<br><br>";
mysql_connect($server, $dbuser, $dbpass) or die ("Could not connect");
echo "Connected<br>";
mysql_select_db($dbname) or die ("Could not select database");
echo "Database Selected<br><br><br>";
echo "Everything was fine";
?>[/PHP]
The Royal Ram
http://www.cannonballguy.com/testdb.php
But WordPress still won't...
I did and it is now:
I only edited the bits that are now bold...
The code said: And I was changing the actual variable names, not the values that they equate too...
You never would have guess I was learning PHP, eh?
Anyway... it's fixed now. I guess this topic can be removed!
But. yes it is working, and with a new theme...
http://www.cannonballguy.com
you can check out lots of others at alexking.org....
Good luck with the site
The Royal Ram