Problem bei zm_database_init

This is the place for any problems or issues with the website in general or the new forums in particular.
Post Reply
OLD_hermann
Posts: 14
Joined: Thu Nov 20, 2008 7:12 pm
Location: Münster NRW Deutschland

Problem bei zm_database_init

Post by OLD_hermann »

Hallo Forenmitglieder

Ich hab da ein Problem bei einer Installation von ZM

wenn ich das zm_database_init ausführe kommen folgende Meldungen.

PC-2:/usr/share/zm/db # zm_database_init
INFO: when db is correctly installed and you just reinstalled rpm, then answer all questions with 'n'
no lockfile found, proceed anyway? [y/N]: Y
new install create db
run mysql command to create db as user root? [Y/n]: Y
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
SQL ERROR: exiting

Der fehler scheint zu sein das root nicht auf localhost zugreifen darf.
er ist aber in der userlist vorhanden wie man unten sieht.


mysql> SELECT host,user,password FROM mysql.user;
+-----------+------+-------------------------------------------+
| host | user | password |
+-----------+------+-------------------------------------------+
| localhost | root | *8A40E1F2FAE43FF47A599F372092C3D94AD1794B |
| PC-2 | root | *8A40E1F2FAE43FF47A599F372092C3D94AD1794B |
| 127.0.0.1 | root | *8A40E1F2FAE43FF47A599F372092C3D94AD1794B |
| localhost | | |
| PC-2 | | |
+-----------+------+-------------------------------------------+
5 rows in set (0.02 sec)

Was muss ich tun damit es wietergeht ???

Vielen dank in vorraus
OLD_hermann
User avatar
monex
Posts: 169
Joined: Mon Jan 22, 2007 1:10 pm

Post by monex »

Hallo,

es sieht so aus, als ob das (MySQL) root Passwort in der .my.cnf falsch ist. Deswegen am besten die Datei /root/.my.cnf entprechend anpassen, oder löschen, dann wird sie von zm_database_init erneut angelegt. Der Hintergrundgedanke davon ist, dass man so das root Passwort nicht in der Prozessauflistung (mit z.B. ps -aux) nicht sehe kann, was sonst der Fall gewesen wäre.

Hoffe das löst das Problem.

Monex
Image
OLD_hermann
Posts: 14
Joined: Thu Nov 20, 2008 7:12 pm
Location: Münster NRW Deutschland

Danke das War's

Post by OLD_hermann »

Danke Monex
Mehr war's mal wieder nicht !!!

Danke nochmal :D :D :D :D
Hermann
User avatar
monex
Posts: 169
Joined: Mon Jan 22, 2007 1:10 pm

Post by monex »

Kein Problem :)
Image
Post Reply