[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Probleme mit MySQL-Installation (war: MySQL: Datenbank test wird nicht angelegt)



Hallo zusammen,

meine angekündigte Debian-Installation habe ich gestern Abend
durchgeführt. Heute installierte ich MySQL. Ich wurde nicht zur Eingabe
des root-Kennwortes aufgefordert. In der Datei syslog stand, dass ich
das root Kennwort mit folgenden Befehlen festlegen kann:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h debian password 'new-password'

Hier die Ausgabe der Befehle:

debian:~# /usr/bin/mysqladmin -u root password 'new-password'
debian:~# /usr/bin/mysqladmin -u root -h debian password 'new-password'
/usr/bin/mysqladmin: connect to server at 'debian' failed
error: 'Lost connection to MySQL server at 'reading initial
communication packet
', system error: 111'
debian:~#

Beim ping auf den Hostnamen debian wird die IP 127.0.1.1
zurückgeliefert. Das deckt sich auch mit der Zeile aus der Datei
/etc/hosts:

debian:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 debian.bienlein.local debian
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
debian:~#

Der Fehler hängt vermutlich mit der IP von debian zusammen. MySQL
lauscht nämlich
nur auf der IP 127.0.0.1. In der Spalte host der user-Tabelle steht aber
für root einmal localhost und einmal debian.

Schöne Grüße
von Simon




Reply to: