Topic on Project:Support desk

Why must the 1.22.0 access the mysql through the /var/lib/mysql/mysql.sock?

3
2402:F000:1:4D01:FCDF:8CE6:22F2:1E8A (talkcontribs)

I update 1.21.3 to 1.22.0. I have set the socket of mysql to another file. But the 1.22.0 must use /var/lib/mysql/mysql.sock to access the DB. I create a symbol link file to link my socket. "php update.php" is OK. But the website still says that can not access DB.

Bawolff (talkcontribs)

Maybe related to switching from using mysql to mysqli for db access.

If you currently have $wgDBServer set to localhost, changing it to be 127.0.0.1 can force php to use the network instead of a local sock.

2402:F000:1:4D01:D0C5:7D94:8F25:825D (talkcontribs)

In php.ini, I also set the mysqli.default_socket to my socket file. Then it's ok now.

Reply to "Why must the 1.22.0 access the mysql through the /var/lib/mysql/mysql.sock?"