Dazza Posted December 12, 2008 Posted December 12, 2008 Hello all, Just swapped servers and after installing my game on the new server I get this msg: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'BLAH1'@'BLAH2' (using password: YES) in /home/*****/public_html/class/class_db_mysql.php on line 46 FATAL ERROR: Could not connect to database on localhost (Access denied for user 'BLAH1'@'BLAH2' (using password: YES)) Now, BLAH1 (Username) and BLAH2 (Localhost) - I think this needs to be changed for the new servers details but how do I do that? I looked in class_db_mysql.php and couldnt see anything that may look obvious to change. Anyone help? Been pulling my hair out over this Quote
Lithium Posted December 12, 2008 Posted December 12, 2008 Re: Database FATAL error seems you need to go into cpanel frist and set the db's / db users and pwd's! :) Quote
Dazza Posted December 12, 2008 Author Posted December 12, 2008 Re: Database FATAL error I'll double check but am sure Iv done that! The DBs were imported from old server Quote
AlabamaHit Posted December 12, 2008 Posted December 12, 2008 Re: Database FATAL error if you changed server...BUT keep your files.....like moved your files from the older server to new.. Make sure you chnage the information in the config.php to match new server. Quote
Dazza Posted December 12, 2008 Author Posted December 12, 2008 Re: Database FATAL error AlabamaHit: Thanks mate thats exactly what it was Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.