Base de données MySQL désactivé

Bonjour

J'ai installé XAMPP pour linux correctement, mais la Base de Données MySQL est Désactivé, et jen e sais pas comment faire pour l'activer, puisque impossible d'y accéder.

http://www.hostingpics.net/viewer.php?id=518506xampp.jpg

Si quelqun sait comment faire, merci :)

3 réponses

  1. Modérateur
    Salut,

    Dans un terminal, en root ou précédé de "sudo" si Ubuntu ou dérivéés...

    /etc/init.d/mysql start

    1. Salut jipicy

      J'utilise OpenSuse, mais cette ligne de commande marche quand même.

      macbernie@macbernie-linux-e5o0:~> sudo /etc/init.d/mysql start
      root's password:
      Creating MySQL privilege database...
      Installing MySQL system tables...
      100509 19:48:07 [Warning] Forcing shutdown of 2 plugins
      OK
      Filling help tables...
      100509 19:48:07 [Warning] Forcing shutdown of 2 plugins
      OK

      PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
      To do so, start the server, then issue the following commands:

      /usr/bin/mysqladmin -u root password 'new-password'
      /usr/bin/mysqladmin -u root -h macbernie-linux-e5o0.site password 'new-password'

      Alternatively you can run:
      /usr/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:
      rcmysql start

      You can test the MySQL daemon with mysql-test package

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

      The latest information about MySQL is available at https://www.mysql.com/
      Support MySQL by buying support/licenses from https://shop.oracle.com/apex/f?p=dstore:2:0::NO:RP,2:PROD_HIER_ID:58095029061520477171389

      Starting service MySQL warning: /var/run/mysql/mysql.sock didn't appear within 30 seconds
      chmod: cannot access '/var/run/mysql/mysqld.pid': No such file or directory
      failed

      Apparement rien n'a faire, mySQL ne ce lance pas :(
      1. Modérateur
        Regarde dans '/etc/my.cnf' dans la section "mysqld" où pointe la ligne "socket", si c'est bien la même que celle des logs ("/var/run/mysql/mysql.sock")...
    2. Dans var/run/mysql je n'ai aucun fichier... :s

      Pourtant dans le fichier my.cnf, j'ai bien le ligne:
      socket = /var/run/mysql/mysql.sock