socal_kl Posted November 17, 2007 Posted November 17, 2007 Hi, I've just changed hosting for my e-commerce website. I uploaded all the files and imported the MySQL database through PHPMyAdmins import section. All files went in properly. Only problem is that the website is not showing up. When I go to it I get the following error. Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'UserName'@'localhost' (using password: YES) in /home/directoryname/public_html/includes/functions/database.php on line 19 Unable to connect to database server! Any help is greatly appreciated. Thanks Weather you think you can, or you think you can't. Your right.
Guest Posted November 17, 2007 Posted November 17, 2007 Hi, I've just changed hosting for my e-commerce website. I uploaded all the files and imported the MySQL database through PHPMyAdmins import section. All files went in properly. Only problem is that the website is not showing up. When I go to it I get the following error. Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'UserName'@'localhost' (using password: YES) in /home/directoryname/public_html/includes/functions/database.php on line 19 Unable to connect to database server! Any help is greatly appreciated. Thanks http://www.oscommerce.com/forums/index.php?sho...=193738&hl=
Syeager Posted November 17, 2007 Posted November 17, 2007 Did you check password and user ID for the database in includes/configure.php? Also the DB name and DB address? It should correspond to whatever you set up in the database admin on the server. If you move to another host, most likely something will be different. For example you DB address can be something other then Localhost. Or names can have different prefixes. Also check absolute server file system path.
socal_kl Posted November 19, 2007 Author Posted November 19, 2007 http://www.oscommerce.com/forums/index.php?sho...=193738&hl= already been to that forum thanks. didn't work which is why i was posting on my own. Weather you think you can, or you think you can't. Your right.
bob777fred Posted November 19, 2007 Posted November 19, 2007 It doesn't look like you configured your new configure.php file - Is there a prefix on the database? A lot of times, especially with shared hosting, mySQL DBs often come with a predefined prefix (example being if I create the database 'Test' in my cPanel, the actual database created for me is 'gotalkab_Test' ) Check that, it may be an issue. What was your database's name before you imported it to PHPMyAdmin?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.