Home Forums OS X Server and Client Discussion Web mysql and gallery2

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #363490
    karl
    Participant

    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)

    Any ideas?

    #363492
    joeedel
    Participant

    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.

    #363498
    karl
    Participant

    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.

    #364272
    Bill Eccles
    Participant

    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.

    Hope that helps!
    Bill

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Comments are closed