MySQL + Leopard Issues

    Yesterday I finally upgraded to Leopard, all the necessary updates were installed, and now I was thinking about getting started, but I ran into such a problem. A slightly different activation path for PHP5 (in the Tiger, httpd.conf was in the folder / private / etc / httpd / , but now it lies in / private / etc / apache2 / ) this problem was solved quickly, and it’s not a problem at all (-:
    But MySQL took much more time than expected when it was already running (installed from dmg), php completely refused to work with my database, citing the fact that /tmp/mysql.sockis missing, and php and mysql refuse to work together. Having studied the Internet, I realized that I was not the only one who encountered this problem and there are several ways to solve this problem, here is one of them that I did:

    As it turned out, the socket moved to / private / tmp , and it was only necessary to supplement the lines in php. ini (/private/etc/php.ini)
    mysql.default_socket =
    and
    mysqli.default_socket =
    up to
    mysql.default_socket = /private/tmp/mysql.sock
    and
    mysqli.default_socket = /private/tmp/mysql.sock
    respectively.

    Perhaps someone else has encountered or will encounter this problem, I hope you will be helped by a solution that helped me yesterday (-:

    PS PHP version 5.2.4, MySQL - 5.1.23

    Also popular now: