I recently purchased a site that runs on a mysql db. I transfered the files to my host, set up a new db, imported the old db and changed the nameservers to my new host. the site is arcadevoid .com and does not load. What could this be?
It looks to me as though you're not connecting to the DB, in other words, check your code connecting to it. Why not paste it here. Here's how I connect to my databases: <? // Connect to DB $hostname = "localhost"; $mysql_login = "brum_admin"; $mysql_password = "password"; $database = "brum_database1"; // connect to the database server if (!($db = mysql_pconnect($hostname, $mysql_login , $mysql_password))){ die( "Can't connect to database server." ); }else{ // select a database if (!(mysql_select_db("$database",$db))){ die( "Can't connect to database." ); } } ?> PHP: You can of course connect successfully with much shorter code if you wish.
Not to throw a different wrench in the mix but did you confirm versions of mysql and linking pages version (PHP 4.*) from your host? Basically make sure they are compatible.
Thanks for your responses. Here is some more info. This is the top of the database i'm trying to import: This is the config.php file that I was told to input my new database details into: The text in red is what I altered. My host uses PHP version 5.1.2 and has the option of using version 4.4.2.