Mysql: Can´t start Server debian wheezy

ⅰ亾dé卋堺 提交于 2019-12-11 20:15:25

问题


Everytime i try to start my mysql service i get the same error

Error message:

150130 15:56:31 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address 150130 15:56:31 [ERROR] Do you already have another mysqld server running on port: 3305 ? 150130 15:56:31 [ERROR] Aborting

My Error log is empty

Conf file snippet:

[client] port = 3305

socket = /var/run/mysqld/mysqld.sock

[mysqld]

user = mysql

pid-file = /var/run/mysqld/mysqld.pid

socket = /var/run/mysqld/mysqld.sock

port = 3305

basedir = /usr

datadir = /var/lib/mysql

tmpdir = /tmp

lc-messages-dir = /usr/share/mysql

skip-external-locking

  • Sorry for my bad english

Complete Conf file


回答1:


Looks like your port(3305) is occupied by another process.. you can :

1) switch to different port

2) kill/modify the process holding this port

(look it up using: lsof -i :3305 )

in addition, this could be the cause of it (as one stated in this post) : Change bind-address to 127.0.0.1 instead of localhost




回答2:


Skipping network worked for me :

# echo "skip-networking" >> /etc/mysql/my.cnf

Then start mysql again.



来源:https://stackoverflow.com/questions/28238626/mysql-can%c2%b4t-start-server-debian-wheezy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!