且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MySQL守护程序拒绝以“无法启动服务器:在TCP / IP端口上绑定:地址已在使用中”开始。 (不是)。

更新时间:2023-01-17 21:54:37

使用 lsof -i TCP:3306 netstat -lp | grep 3306 找出正在侦听的端口3306 - 必须正在侦听。

Use lsof -i TCP:3306 or netstat -lp | grep 3306 to find out what is already listening on port 3306 - something must be listening on it.

您可以考虑在不同的端口(编辑my.cnf并更改默认端口)。

You could consider staring the server on a different port (edit my.cnf and change the default port there).

您可能需要以root用户身份运行,即 sudo lsof -i TCP:3306

You may need to run this as root, i.e. sudo lsof -i TCP:3306