php pdo连接报错Connection failed: SQLST

vim /etc/php.ini


/tmp/mysql.sock
mysql.default_socket = /tmp/mysql.sock
pdo_mysql.default_socket= /tmp/mysql.sock
mysqli.default_socket =/tmp/mysql.sock


修改完成后使用 

/etc/init.d/httpd restart

你可能感兴趣的:(PHP,Failed:,SQLST)