Warning_ mysql_connect() [function.mysql-connect]_ Can't connect to local MySQL server through socket '_tmp_mysql.sock' (2)

COS、CDN
wdzsjl 2周前 (01-01) 阅读数 32 #工具收纳箱

"Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"

  • 原因:尝试通过socket连接本地MySQL服务器失败。
  • 解决方法:检查MySQL服务是否启动,确保socket路径正确。
COS、CDN
热门