Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mysql init script startet nicht ordentlich
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Wed Jun 20, 2007 6:27 pm    Post subject: mysql init script startet nicht ordentlich Reply with quote

Hallo zusammen!
Ich habe seit kurzem amarok mit mysql backend laufen und hab dafür mysql installiert. Leider startet es nicht ordentlich; dh. ich muss es min. dreimal starten bevor der server läuft. Hab schon alles versucht, neu installiert usw...
Wäre super, wenn jemand einen tipp für mich hätte.
Hier ist das was ich auf der konsole sehe:
Code:
* Starting  ...
 * Starting  (/etc/mysql/my.cnf)
start-stop-daemon: open pidfile /var/run/mysqld/mysqld.pid: No such file or directory
 * MySQL NOT started (1)                                                                                    [ !! ]
 * ERROR:  mysql failed to start
ip2-196 david # /etc/init.d/mysql start
 * Starting  ...
 * "/var/run/mysqld/mysqld.pid" is still present and the process is running.
 * Please stop it "kill 25827" maybe ?                                                                      [ !! ]
 * ERROR:  mysql failed to start
ip2-196 david # /etc/init.d/mysql start
 * Starting  ...
 * Starting  (/etc/mysql/my.cnf)                                                                            [ ok ]
ip2-196 david #                             
Back to top
View user's profile Send private message
borsdel
Apprentice
Apprentice


Joined: 01 Nov 2005
Posts: 289
Location: de

PostPosted: Thu Jun 21, 2007 3:54 pm    Post subject: Reply with quote

hast du vielleicht an /var/run/mysqld/ irgendwas geändert?
mach mal ein
Code:
chown mysql\: /var/run/mysqld/

und versuch mal das init-script --verbose zu starten, aber das wird wohl auch nicht mehr ausspucken...
mfg borsdel
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Thu Jun 21, 2007 4:02 pm    Post subject: Reply with quote

Die rechte hatte das verzeichnis vorher auch schon. Hab ich mir auch schon angesehen. Wars also leider nicht.
Ich vermute mittlerweile, dass in dem start script, das meiner meinung nach ziemlich wirr ist, irgendetwas zu schnell abgefragt wird. Soll heißen, dass die fehlermeldung mysql.pid sei nicht vorhanden zu früh ausgegeben wird. Denn beim zweiten start beschwert er sich ja, dass der prozess laufe.
dk
Back to top
View user's profile Send private message
borsdel
Apprentice
Apprentice


Joined: 01 Nov 2005
Posts: 289
Location: de

PostPosted: Thu Jun 21, 2007 4:19 pm    Post subject: Reply with quote

höchstwahrscheinlich wird es am init-script liegen. teste doch mal, den mysqld so zu starten.
klappt bei mir problemlos, da scheinbar alles standardpfade usw.
Code:
mysqld &

und danach testen ob es geklappt hat
Code:
mysql -u root -p

und jetzt evtl noch mit der amarok-db verbinden
Code:
connect ?amarokdb?

mfg borsdel
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Thu Jun 21, 2007 5:24 pm    Post subject: Reply with quote

ja das geht auch :)
da fragt man sich ja warum es eines so komplizierten init script bedarf.
leider bin ich jetzt noch keinen schritt weiter, denn von hand starten muss ich den ja jetzt auch.
dk
Back to top
View user's profile Send private message
borsdel
Apprentice
Apprentice


Joined: 01 Nov 2005
Posts: 289
Location: de

PostPosted: Thu Jun 21, 2007 5:36 pm    Post subject: Reply with quote

na schau dir /etc/conf.d/mysql an und du weißt, warum es so ein init-script bedarf
ansonsten, wenn keine wege drumrumführen, nimmst ein eigenes init-script
Code:
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later

depend() {
        need net
}

start() {
        ebegin "Starting MySql"
        start-stop-daemon --start --name mysqld --exec /usr/sbin/mysqld &
        eend $?
}

stop() {
        ebegin "Stopping MySql"
        start-stop-daemon --stop --name mysqld
        eend $?
}

aber such trotzdem vielleicht nochmal nachm fehler ;)
mfg borsdel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum