这时应当修改hostname,例如在CI 配置数据库 (database.php) 从:
$db['default']['hostname']?=?'localhost';?
到:
$db['default']['hostname']?=?'localhost:/Applications/mamp/mysql/tmp/mysql.sock';
(...)
Read the rest of PHP 连接 unix_socket MySQL (47 words)
© Li Xi for LixiPHP, 2014. |
Permalink |
No comment |
Add to
del.icio.us
Post tags: CI, drupal, MySQL, unix_socket
Feed enhanced by Better Feed from Ozh