mySQL error? mySQL error?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

mySQL error?

Started by Uzma, May 28, 2011, 04:42:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Uzma

Hello,
I just moved my gallery from one host to another. I'm getting the following error:

QuoteCoppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)

I've tried to find this mysql.sock file but it's nowhere to be found. Can someone help me? Thanks in advance.

The link to the site is: http://ramkapoorrocks.com/gallery


RaptorUK

Quote from: Uzma on May 28, 2011, 04:42:45 PM
Hello,
I just moved my gallery from one host to another.


It would probably help if you explained what steps you took to move your gallery to a new host.  For example if you just copied the files across then it won't work . . .

Uzma

I backed up the database, all the files in the directories. Uploaded the files to the new server/domain, restored the database, changed the config file to match the new database info (username and password). I had done the same once before to move the gallery (different site) and it had worked perfectly without any issues.

lurkalot

Quote from: Uzma on May 29, 2011, 10:09:42 PM
I backed up the database, all the files in the directories. Uploaded the files to the new server/domain, restored the database, changed the config file to match the new database info (username and password). I had done the same once before to move the gallery (different site) and it had worked perfectly without any issues.

Normally you would use the export function in phpmyadmin to export the old database, then create a new empty database on the new server. (make sure config.inc.php file is set to it)   Then import that data to the new database, using phpmyadin import function.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Uzma

Yes, that's exactly what I did. Exported, then imported.

I've just never gotten this sort of an error before. there's no mysql.sock file anywhere.

ΑndrĂ©