Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 11-26-2007, 12:40 PM
IronWarrior's Avatar
IronWarrior IronWarrior is offline
Junior Croc
 
Join Date: Nov 2007
Location: England UK
Posts: 164
Default Site moved but SQL error?

Hello.

Am a new customer and I just brought hosting for the first time for my site, http://www.game-maps.net/

I've just had all my files and DB's moved to the new host and we just changed the name servers eailer today, everything has been completed now.

But the problem is that users going to the site are getting this error.

Quote:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'game_admin'@'localhost' (using password: YES) in /home/iwarrior/public_html/includes/mysql.php on line 63
: paFileDB was unable to successfully connect to the MySQL database. Check your settings including the MySQL server, username, and password and try again.
I've looked at the old cpanel SQL area in the old host and then looked at the new one and I can see the difference between them and I understand the problem, but am so out of my depth on fixing it.

Am also worried about the name changes between the database's.

My transfer ticket is still open, I was expecting it to be closed now, but because it is open, am thinking the person who has transfered my site, is gonna fix this part, but as he didn't do it when he moved the files and DB, am confused.

I'll have no experience in things like this, any help would be most welcome.

Thank you.
Reply With Quote
  #2  
Old 11-26-2007, 01:02 PM
kmaw's Avatar
kmaw kmaw is offline
Emperor Croc
 
Join Date: Mar 2005
Location: Ontario, Canada
Posts: 1,924
Default Re: Site moved but SQL error?

Go into cpanel, click MySQL databases and make sure the user game_admin is added to the DB
Reply With Quote
  #3  
Old 11-26-2007, 01:30 PM
IronWarrior's Avatar
IronWarrior IronWarrior is offline
Junior Croc
 
Join Date: Nov 2007
Location: England UK
Posts: 164
Default Re: Site moved but SQL error?

Yeah it is, but it's under a new name now, none of the other fields are added.
Reply With Quote
  #4  
Old 11-26-2007, 01:38 PM
ghpk ghpk is offline
King Croc
 
Join Date: Nov 2006
Posts: 1,245
Default Re: Site moved but SQL error?

Quote:
Originally Posted by IronWarrior View Post
Yeah it is, but it's under a new name now, none of the other fields are added.
check with your config file it is having the correct DB connection specified, if you have moved your site most probably your username would be different from the one you were using earlier.

mysql error you are getting also says "
Check your settings including the MySQL server, username, and password and try again."
Reply With Quote
  #5  
Old 11-26-2007, 02:55 PM
IronWarrior's Avatar
IronWarrior IronWarrior is offline
Junior Croc
 
Join Date: Nov 2007
Location: England UK
Posts: 164
Default Re: Site moved but SQL error?

Ah well, with a help of a friend, she told me how to fix it, was so simple really, all I needed to do was change the old account details to the new in mysql.php file and upload it.

But, now am trying to fix the wiki that is also hosted, http://www.game-maps.net/wiki/

So same error I guess, but can't really find the right file to fix it.
Reply With Quote
  #6  
Old 11-27-2007, 10:29 AM
IronWarrior's Avatar
IronWarrior IronWarrior is offline
Junior Croc
 
Join Date: Nov 2007
Location: England UK
Posts: 164
Default Re: Site moved but SQL error?

Hmm, if anyone knows about wikis please reply.

Last edited by IronWarrior; 11-27-2007 at 10:43 AM.
Reply With Quote
  #7  
Old 11-28-2007, 10:00 AM
kompreszor's Avatar
kompreszor kompreszor is offline
Swamp Croc
 
Join Date: Jun 2007
Location: Pennsylvania, USA
Posts: 330
Default Re: Site moved but SQL error?

I don't use MediaWiki, but a quick look on there site got me this...

file to edit: LocalSettings.php
Directions
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 05:27 AM.