This topic is locked

Connecting to MySQL DB After Changing Hosting Co.

12/26/2007 6:55:22 PM
PHPRunner General questions
T
tototoo author

My pages were working fine. Then, I changed my host and they dictated the name of the MySQL database. I uploaded the tables (structure and data) without any problems but I get a PHP error, now. The error is on line 9 of /output/include/dbconnection.php and it says, "mysql_connect() [function.mysql-connect]: Access denied for user: 'root@localhost' (Using password: YES)".
What do I do?
Thanks in advance for your help.

Alexey admin 12/27/2007

Hi,
I suppose you need to use another username and password at new hosting.

You can change the connection info in include/dbcommon.php file at your server.

T
tototoo author 12/27/2007

Thanks, Alexey. I'd been looking in dbconnection.php. Sometimes, I can be such a fool. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=24419&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />