|
PHP程序:
<?PHP
$con=mysql_connect("localhost");
echo $con;
?>
再现的警告信息:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /www/htdocs/myphp/m.php on line 2
Mysql数据库服务已正常启动,也可以在msyql>提示符下进行操作。用<?php phpinfo() ?>可以看到支持Mysql的信息。请各位帮帮忙,谢谢!! |
|