dsaeyrq451928 2014-12-14 05:10
浏览 328
已采纳

无法通过套接字'/var/lib/mysql/mysql.sock'连接到本地MySQL服务器。 共享服务器不支持此功能。如何解决此问题? [关闭]

This is not supported on the shared hosting server, Any idea?

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (2)
  • 写回答

1条回答 默认 最新

  • dopr25398 2014-12-14 08:39
    关注

    I have checked further and i am using Mysql.Socket - this is not supported on the shared server. The connection should be Mysqli. When i have changed the mysql into mysqli now it is perfectly connecting.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?