Cyberdave Posted July 6, 2012 Share Posted July 6, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/265305-moving-cms-based-website/ Share on other sites More sharing options...
andrew_biggart Posted July 6, 2012 Share Posted July 6, 2012 It would help if you explained what CMS the website is build on? Or possibly post some code? Otherwise we might as well play a game of Where's Wally! Quote Link to comment https://forums.phpfreaks.com/topic/265305-moving-cms-based-website/#findComment-1359628 Share on other sites More sharing options...
MargateSteve Posted July 6, 2012 Share Posted July 6, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/265305-moving-cms-based-website/#findComment-1359633 Share on other sites More sharing options...
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.