Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
279 views
in Technique[技术] by (71.8m points)

sockets - Mysql: Can´t start Server debian wheezy

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...