更新时间: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