Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.