MySQL/PHP Error:[2002] Only one usage of each socket address (protocol/network address/port) is normally permitted

前端 未结 6 1974
陌清茗
陌清茗 2020-11-27 08:11

I couldn\'t find a solution to this already on stackoverflow, most other related topics had to do with Apache not starting first and getting this error. My issue is that aft

6条回答
  •  眼角桃花
    2020-11-27 08:29

    Happens to me when developing my Laravel projects. For developmental purposes, it's no biggie especially when you are using windows system. But for production, I simply run on Linux and problem solved. Also, change the MySQL connection from "localhost" to "127.0.0.1" if possible.

提交回复
热议问题