Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 09/11/2008, à 12:30

ringostare

Comment lancer MySQL au démarrage du PC

Bonjour,

J'utilise MySQL pour ma base de donnée Amarok, mais MySQL ne se lance pas automatiquement au démarrage. Il faut donc que je le lance manuellement en console pour avoir ma collection dans Amarok.
J'ai rajouté la commande

sudo /etc/init.d/mysql start

dans Système ->Preferences ->Session ->programmes au démarrage, mais ça ne fonctionne pas : MySQL n'est pas lancé.

Comment faire SVP, merci d'avance.

Hors ligne

#2 Le 09/11/2008, à 14:09

Stu

Re : Comment lancer MySQL au démarrage du PC

Tu peux utiliser le fichier /etc/rc.local pour faire ça. Edite-le (en root) et rajoute ta commande avant la dernière ligne "exit 0" :

/etc/init.d/mysql start

Hors ligne

#3 Le 10/11/2008, à 09:01

ringostare

Re : Comment lancer MySQL au démarrage du PC

Bonjour,
Merci pour la réponse, malheureusement ça ne fonctionne pas non plus. Je n'arrive à le lancer qu'en console.

Je repose donc la question à qui saurait, merci

Hors ligne

#4 Le 10/11/2008, à 09:52

aquouel

Re : Comment lancer MySQL au démarrage du PC

Salut,

Que donne la commande suivante :

$ ls -l /etc/rc?.d/*mysql*

@+


a+

Hors ligne

#5 Le 11/11/2008, à 12:25

ringostare

Re : Comment lancer MySQL au démarrage du PC

aquouel a écrit :

Salut,

Que donne la commande suivante :

$ ls -l /etc/rc?.d/*mysql*

@+

Voilà :

~$ ls -l /etc/rc?.d/*mysql*
lrwxrwxrwx 1 root root 15 2008-11-09 09:34 /etc/rc0.d/K21mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 19 2008-11-09 09:34 /etc/rc0.d/K22mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx 1 root root 23 2008-11-09 09:34 /etc/rc0.d/K23mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
lrwxrwxrwx 1 root root 15 2008-11-09 09:34 /etc/rc1.d/K21mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 19 2008-11-09 09:34 /etc/rc1.d/K22mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx 1 root root 23 2008-11-09 09:34 /etc/rc1.d/K23mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
lrwxrwxrwx 1 root root 23 2008-11-09 09:34 /etc/rc2.d/S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
lrwxrwxrwx 1 root root 19 2008-11-09 09:34 /etc/rc2.d/S18mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx 1 root root 15 2008-11-09 09:34 /etc/rc2.d/S19mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 23 2008-11-09 09:34 /etc/rc3.d/S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
lrwxrwxrwx 1 root root 19 2008-11-09 09:34 /etc/rc3.d/S18mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx 1 root root 15 2008-11-09 09:34 /etc/rc3.d/S19mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 23 2008-11-09 09:34 /etc/rc4.d/S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
lrwxrwxrwx 1 root root 19 2008-11-09 09:34 /etc/rc4.d/S18mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx 1 root root 15 2008-11-09 09:34 /etc/rc4.d/S19mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 23 2008-11-09 09:34 /etc/rc5.d/S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
lrwxrwxrwx 1 root root 19 2008-11-09 09:34 /etc/rc5.d/S18mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx 1 root root 15 2008-11-09 09:34 /etc/rc5.d/S19mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 15 2008-11-09 09:34 /etc/rc6.d/K21mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 19 2008-11-09 09:34 /etc/rc6.d/K22mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx 1 root root 23 2008-11-09 09:34 /etc/rc6.d/K23mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm

Hors ligne