Jump to content

Moving CMS based website


Cyberdave

Recommended Posts

A friend has asked me to switch his website from his web hosting company server on to my server. I have never switched a CMS based site before, so I'm not really sure what I'm doing. I know I need to setup a Database for it on my server, but not sure what files I need to edit to make sure the Username and Password match.

 

I currently get the following error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'name_dealer'@'localhost' (using password: YES) in /home/name/public_html/folder/inc/classes/hubDB.class.php on line 16

Access denied for user 'name_dealer'@'localhost' (using password: YES)

 

Any help would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/265305-moving-cms-based-website/
Share on other sites

Have you set the database up yet? The error is saying that it has failed to connect to the database and you said 'I know I need to setup a Database for it on my server'. If the database has not been set-up then this is the problem.

 

If the database has been set-up, assuming the code worked fine on the other host, it will simply be a case that you will need to change the parameters in the code (db name, username, p/w etc) to the ones that you created or where given when you set up the new database.

 

If it is a third party CMS, there should be a file where you can change all of these.

 

Steve

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.