Confusing PDO-only problem : Can't connect through socket/Access denied/Can't connect to server (shared host)

前端 未结 14 1927
失恋的感觉
失恋的感觉 2020-12-08 12:07

So the problem changed from what it was, i\'ll leave the original question below to prevent bad reviews on answers like I had after someone editing his question I answered :

14条回答
  •  难免孤独
    2020-12-08 12:28

    I just solved a similar issue. My guess is you probably replaced your mysql_connect() statement with the PDO equivalent. Don't forget you still have lots of other code dependent on that old connection statement. Try keeping the mysql_connect in place while writing in the PDO code.

提交回复
热议问题