- 论坛徽章:
- 0
|
本来就是有的
# find / -name "mysql.sock"
/usr/local/mysql/var/mysql.sock
test.php内容
我密码是空的
<?php
$link=mysql_connect('localhost','root','');
if(!$link) echo "失败!";
else echo "成功!";
mysql_close();
?>
# ls
bin info libexec mysql-test sql-bench
include lib man share var
# cd var
# ls
.localdomain.err mysql-bin.000003 mysql-bin.000008
.localdomain.pid mysql-bin.000004 mysql-bin.000009
mysql mysql-bin.000005 mysql-bin.index
mysql-bin.000001 mysql-bin.000006 mysql.sock
mysql-bin.000002 mysql-bin.000007 test
[ 本帖最后由 zouql 于 2007-7-18 13:42 编辑 ] |
|