/var/log/mysqld.log日志如下:
161102 23:02:43 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address161102 23:02:43 [ERROR] Do you already have another mysqld server running on port: 3306 ?161102 23:02:43 [ERROR] Aborting161102 23:02:43 InnoDB: Starting shutdown...161102 23:02:48 InnoDB: Shutdown completed; log sequence number 0 99114095161102 23:02:48 [Note] /usr/libexec/mysqld: Shutdown complete
网上已有好多原因,这里提供另外一种可能出错的原因:
my.cnf里配置了bind-address,且bind-address连接失败,也会报端口被占用的错误。
参考: