mysql Server startet nicht nach installation

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
unixagent
Beiträge: 2
Registriert: 17.12.2014 08:11:43

mysql Server startet nicht nach installation

Beitrag von unixagent » 17.12.2014 08:16:33

Hallo,
ich habe auf einer VM Debian 7 (wheezy) und wollte dort nun einen mysql-server installieren.
Diese Maschine ist praktisch "nackt", also noch nicht anderes händisches installiert ;-)

Wenn ich nun mit apt-get update und apt-get install mysql-server den Server installiere fragt er nach den Root-Kennwörtern und versucht die Maschine zu starten, was jedoch fehlschlägt. Jemand einen tipp? :(

Folgend die Logs und Auswertungen meinerseits:

netstat -lnp | grep 3306:
no outpout

etc/hosts:
127.0.0.1 localhost
EXTERNAL-IP HOSTNAME-OF-SERVER

etc/mysql/my.cnf:
bind-address = 127.0.0.1

Syslog:
Dec 16 19:49:09 support mysqld_safe[11996]: 141216 19:49:09 InnoDB: Starting shutdown...
Dec 16 19:49:10 support mysqld_safe[11996]: 141216 19:49:10 InnoDB: Shutdown completed; log sequence number 1595675
Dec 16 19:49:10 support mysqld_safe[11996]: 141216 19:49:10 [Note] /usr/sbin/mysqld: Shutdown complete
Dec 16 19:49:10 support mysqld_safe[11996]:
Dec 16 19:49:11 support mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql
Dec 16 19:49:11 support mysqld: 141216 19:49:11 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
Dec 16 19:49:11 support mysqld: 141216 19:49:11 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
Dec 16 19:49:11 support mysqld: 141216 19:49:11 [Note] Plugin 'FEDERATED' is disabled.
Dec 16 19:49:11 support mysqld: 141216 19:49:11 InnoDB: The InnoDB memory heap is disabled
Dec 16 19:49:11 support mysqld: 141216 19:49:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
Dec 16 19:49:11 support mysqld: 141216 19:49:11 InnoDB: Compressed tables use zlib 1.2.7
Dec 16 19:49:11 support mysqld: 141216 19:49:11 InnoDB: Using Linux native AIO
Dec 16 19:49:11 support mysqld: 141216 19:49:11 InnoDB: Initializing buffer pool, size = 128.0M
Dec 16 19:49:11 support mysqld: 141216 19:49:11 InnoDB: Completed initialization of buffer pool
Dec 16 19:49:11 support mysqld: 141216 19:49:11 InnoDB: highest supported file format is Barracuda.
Dec 16 19:49:11 support mysqld: 141216 19:49:11 InnoDB: Waiting for the background threads to start
Dec 16 19:49:12 support mysqld: 141216 19:49:12 InnoDB: 5.5.40 started; log sequence number 1595675
Dec 16 19:49:12 support mysqld: 141216 19:49:12 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
Dec 16 19:49:12 support mysqld: 141216 19:49:12 [Note] - '127.0.0.1' resolves to '127.0.0.1';
Dec 16 19:49:12 support mysqld: 141216 19:49:12 [Note] Server socket created on IP: '127.0.0.1'.
Dec 16 19:49:12 support mysqld: 141216 19:49:12 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
Dec 16 19:49:12 support mysqld: 141216 19:49:12 [ERROR] Do you already have another mysqld server running on port: 3306 ?
Dec 16 19:49:12 support mysqld: 141216 19:49:12 [ERROR] Aborting
Dec 16 19:49:12 support mysqld:
Dec 16 19:49:12 support mysqld: 141216 19:49:12 InnoDB: Starting shutdown...
Dec 16 19:49:13 support mysqld: 141216 19:49:13 InnoDB: Shutdown completed; log sequence number 1595675
Dec 16 19:49:13 support mysqld: 141216 19:49:13 [Note] /usr/sbin/mysqld: Shutdown complete
Dec 16 19:49:13 support mysqld:
Dec 16 19:49:13 support mysqld_safe: mysqld from pid file /var/run/mysqld/mysqld.pid ended
Dec 16 19:49:25 support /etc/init.d/mysql[12699]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Dec 16 19:49:25 support /etc/init.d/mysql[12699]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Dec 16 19:49:25 support /etc/init.d/mysql[12699]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Dec 16 19:49:25 support /etc/init.d/mysql[12699]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

Benutzeravatar
Hendri
Beiträge: 586
Registriert: 23.08.2003 12:17:43
Lizenz eigener Beiträge: MIT Lizenz

Re: mysql Server startet nicht nach installation

Beitrag von Hendri » 18.12.2014 11:38:11

Hallo unixagent und willkommen im im Debian Forum! :)

Hmm, das sieht fuer mich ein wenig danach aus, als ob er sich auch auf IPv6 binden wollte, dies aber deaktiviert ist.

Code: Alles auswählen

sysctl -a|grep net.ipv6.conf.all.disable_ipv6
Kann das sein?

Ciao, Hendri
Ciao, Hendri

unixagent
Beiträge: 2
Registriert: 17.12.2014 08:11:43

Re: mysql Server startet nicht nach installation

Beitrag von unixagent » 18.12.2014 13:30:08

Hallo Henri,
danke für deine Antwort.
Ich konnte das Problem mittlerweile lösen (lassen) ;-)

Beim Starten des Service konnte sich mysql nicht an localhost binden, das Problem konnte mittels
ifconfig lo up
gelöst werden.

Antworten