PDA

Bekijk de volledige versie : Problem bei der Installation von Mysql 5



pc-nico
15-02-2010, 13:05
Hallo Leute,

ich bekomme bei der Installation von Mysql 5 eine Fehlermeldung, kann mir jemand sagen was ich tun kann?



[admin@wl500gp root]$ ipkg install mysql5
Installing mysql5 (5.0.88-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/mysql5_5.0.88 -1_mipsel.ipk
Configuring cyrus-sasl

Please read the man page of saslauthd and
check settings in /opt/etc/init.d/S52saslauthd

If you dislike the link /usr/lib/sasl2 -> /opt/lib/sasl2
then you may want to set SASL_PATH instead

(re)starting service saslauthd
postinst script returned status 1
ERROR: cyrus-sasl.postinst returned 1
Configuring mysql5
Installing MySQL system tables...
100215 12:47:42 [Warning] option 'myisam_max_extra_sort_file_size': unsigned value 2147483648 adjusted to 2147483647
100215 12:47:42 [Warning] option 'thread_stack': unsigned value 65536 adjusted to 131072
OK
Filling help tables...
100215 12:47:42 [Warning] option 'myisam_max_extra_sort_file_size': unsigned value 2147483648 adjusted to 2147483647
100215 12:47:42 [Warning] option 'thread_stack': unsigned value 65536 adjusted to 131072
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/opt/bin/mysqladmin -u root password 'new-password'
/opt/bin/mysqladmin -u root -h wl500gp password 'new-password'

Alternatively you can run:
/opt/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /opt ; /opt/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /opt/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
chown: unknown user/group root:root
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
postinst script returned status 1
ERROR: mysql5.postinst returned 1
Successfully terminated.
[admin@wl500gp root]$ cd /opt ; /opt/bin/mysqld_safe &
[admin@wl500gp /opt]$ chown: unknown user name: mysql
Starting mysqld daemon with databases from /opt/var
STOPPING server from pid file /opt/var/wl500gp.pid
100215 12:48:53 mysqld ended

newbiefan
15-02-2010, 21:26
Sind diese angelegt?

Siehe Ausgabe bei der ipkg Installation.


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/opt/bin/mysqladmin -u root password 'new-password'
/opt/bin/mysqladmin -u root -h wl500gp password 'new-password'

wengi
17-02-2010, 09:14
Sind diese angelegt?
Falls Du die User meinst: Die werden doch bei der Installation von Mysql angelegt.
Der SQL Server selbst lässt sich aber nicht starten.

@pc-nico
Als erstes wäre da
chown: unknown user/group root:root
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
postinst script returned status 1
ERROR: mysql5.postinst returned 1
Die Installation versucht alles als root:root zu starten und ich vermute mal, dass es bei Dir noch admin:root ist.

Dann noch Dein Versuch mit
[admin@wl500gp root]$ cd /opt ; /opt/bin/mysqld_safe &
[admin@wl500gp /opt]$ chown: unknown user name: mysql
was auch wieder auf ein User-Problem hinweist, da der user mysql nicht existiert.
Du hast zwei Möglichkeiten:
- Die Conf-Dateien anpassen, um alles als admin:root laufen zu lassen
- den user mysql anlegen (Umbenennung von admin nach root vermutlich nicht notwendig)

Ich würde zweiteres empfehlen, da Du sonst bei einem ipkg upgrade wieder Probleme bekommen könntest.

Also
- mysql User anlegen
- Dateiberechtigungen dementsprechend setzen
- starten

Weiter oben hattest Du bereits
postinst script returned status 1
ERROR: cyrus-sasl.postinst returned 1
Dazu kann ich leider nicht viel sagen.

Und bitte beachten: Ich rede von System-Usern, nicht von MySQL Usern!

wengi

pc-nico
17-02-2010, 09:48
danke für die Tipps... kann mir noch jemand sagen welches Paket ich installieren
muss damit ich useradd bzw adduser zur Verfügung habe? Die Befehle gibt es
in meinem System nämlich nicht... habe mich großteils an Wengi HowTo
orientiert...

Aber ich habe das Problem bereits lösen können... einfach in der my.cnf vom
Mysql in der Sektion [Mysqld] ein user = root eingefügt... und schon startet
der DB Server... Warum das aber geht verstehe ich auch nicht so ganz,
da es bei mir nur den User admin gibt... oder ist das nur ein alias und im Hintergrund
heißt der User eigentlich root? naja es läuft erstmal :-)

newbiefan
17-02-2010, 22:26
ipkg install adduser

@wengi
naaa wengi, ich war nur zu faul um lange zu schreiben....
ich meinte natürlich root/root :p
LG