dsaeyrq451928
2014-12-14 05:10 阅读 156
已采纳

无法通过套接字'/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 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.

    点赞 评论 复制链接分享

相关推荐