I am trying to install Gallery 2 on a Tider server. I am doing ok but I got stuck on step 5 with the following error.
Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) in /Library/WebServer/Documents/gallery2/lib/adodb/drivers/adodb-mysql.inc.php on line 348
localhost: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)
What is step 5 asking and what are you entering, I installed gallery2 just a few days ago but forget what step 5 is. Also if it seems to be a mysql permissions problem there is a MSQL administrator here
free and pretty good for ver 1.x may be a permissions connection problem.
Step 5 is Database Setup. I have checked that my user and password are correct. I cannot locate the “msql.sock” in the tmp directory. When is that file created and could it be a tmp directory permissions direct.
It appears that there are a few things going on with the default installation of MySQL on OSXS (10.4).
Whereas most of the world, including PHP 4, expects to be able to connect to the MySQL server through a socket at /tmp/mysql.sock, the default Apple-supplied configuration places the socket at /var/mysql/mysql.sock. There are two possible fixes, both of which are documented by Apple here.
Comments are closed