|
楼主 |
发表于 2006-2-10 17:26:18
|
显示全部楼层
Post by 终极幻想
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = '/var/run/mysql/mysql.sock'; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'socket'; // How to connect to MySQL server ('tcp' or 'socket')
用的是socket方式连接,还有socket的位置。
[color="Red"]
非常感谢...我修改了下面这两个选项就OK了..谢谢..呵.$cfg['Servers'][$i]['socket'] = '/var/run/mysql/mysql.sock'; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'socket'; // How to connect to MySQL server ('tcp' or 'socket') |
|