成功以后,用mysql_connect连结mysql数据库,出现如下问题:
Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /www/htdocs/test.php on line 2
-l, --log[=file]
Log connections and queries to le. See Section 4.9.2 [Query log], page 281.
--log-slow-queries[=file]
Log all queries that have taken more than long_query_time seconds to execute
to le. See Section 4.9.5 [Slow query log], page 284.