📜 ⬆️ ⬇️

MySQL + Leopard Problems

Yesterday I was finally updated to Leopard, all the necessary updates were installed, and now I was thinking about getting to work, but I ran into such a problem. A slightly different way to activate PHP5 (in Tigre, httpd.conf was in the / private / etc / httpd / folder, now it is in / private / etc / apache2 / ) this problem was resolved quickly, and not a problem at all (-:
But MySQL took much more time than expected when it was already started (installed from dmg), php completely refused to work with my database, arguing that /tmp/mysql.sock is missing, and php and mysql refuse to work together. After studying the Internet, I realized that I was not the only one who faced this problem and there are several ways to solve this problem, here’s one of them, which I did:

As it turned out, the socket moved to / private / tmp , and you only needed to add lines to php.ini (/private/etc/php.ini)
mysql.default_socket =
and
mysqli.default_socket =
before
mysql.default_socket = /private/tmp/mysql.sock
and
mysqli.default_socket = /private/tmp/mysql.sock
respectively.

Maybe someone else has encountered or will face this problem, I hope you will be helped by the solution that helped me yesterday (-:
')
PS PHP version 5.2.4, MySQL 5.1.23

Source: https://habr.com/ru/post/22460/


All Articles