my.cnf
socket = /alidata3/mysql-tmp/mysql.sock
php.ini
mysqli.default_socket =/alidata3/mysql-tmp/mysql.sock
mysql.default_socket =/alidata3/mysql-tmp/mysql.sock