News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

[Solved]: MySQL error

Started by sherekhan, March 17, 2004, 04:16:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sherekhan

I have downloaded Coppermine 1.2.1 standalone on my server, and now I try to install. I have installed MySQL and created a database and a user for Coppermine. However, when I try to enter these values into the Coppermine installation I get this error message:

QuoteCould not create a mySQL connection, please check the SQL values entered

MySQL error was : Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)

From the error I get the impression that Cmine is trying to look up the socket in the file /var/run/mysql/mysql.sock. But when I look it up I find a zero-length file, so trying to cat it gives me an error message. Is this file supposed to be empty? Or is there any other way I can tell Cmine which socket to use?

I have double checked that the user name, password and database name is correct, and that the user has access to the database locally.

Any help is appreciated.

System info: Coppermine 1.2.1 standalone, MySQL 11.18, OpenBSD 3.4 and Apache 1.3.28 chrooted to /var/www.

sherekhan

I changed the host from localhost to 127.0.0.1, and the damnest thing, it worked. Weird shit.