Léa-Linux & amis :   LinuxFR   GCU-Squad   GNU
Connection impossible through /tmp/mysql.sock (111)
Envoyé par: Wedge

Resalut à tous smiling smiley

tout est dans le titre winking smiley

J'ai installé Apache, Php et MySQL.
J'ai voulu installer PHPMyAdmin, pas de pb ( puisqu'il s'agit juste de copier les fichiers au bon endroit winking smiley ).
J'ouvre la page et pouf, ce message d'erreur.

Je vais donc voir ledit fichier mysql.sock dans /tmp : point de fichier ( bigre ! )
Je crée le fichier avec en prime un chmod 777 ( au cas ou winking smiley ).
Je relance ... même erreur.
Je reboot ... le fichier s'est transformé en socket ( il était en fichier simple avant le reboot ), mais je me fais toujours insulter de la même manière.
J'ai essayé de me connecter "à la main" à mysql, mais il me dit toujours la même chose :,(.

Une idée ?

Merci d'avance smiling smiley


Poste le Wednesday 7 January 2004 16:22:41
Répondre     Citer    
Re: Connection impossible through /tmp/mysql.sock (111)
Envoyé par: Pascal

Bonjour,

L'installation est-elle correcte ?
Il faut en effet que les répertoires /var/lib/mysql/mysql et /vaar/lib/mysql appartiennent à l'utilsateur mysql.
Le plus simple (je crois) est de faire :
su
su mysql
mysql_install_db

pour que mysql_install_db soit lancé par l'utilisateur mysql.
Il y a sinon un fichier .err dans le répertoire /var/lib/mysql.

Bon courage.

Poste le Wednesday 7 January 2004 19:26:52
Répondre     Citer    
Re: Connection impossible through /tmp/mysql.sock (111)
Envoyé par: Wedge

Ok, merci pour l'info, je vais voir si ça vient de là smiling smiley


Poste le Friday 9 January 2004 10:52:56
Répondre     Citer    
Re: Connection impossible through /tmp/mysql.sock (111)
Envoyé par: Cyrille

cat /etc/rc.d/rc.mysql

#!/bin/sh
# Start/stop/restart mysqld.
#
# Copyright 2003 Patrick J. Volkerding, Concord, CA
# Copyright 2003 Slackware Linux, Inc., Concord, CA
#
# This program comes with NO WARRANTY, to the extent permitted by law.
# You may redistribute copies of this program under the terms of the
# GNU General Public License.

# To start MySQL automatically at boot, be sure this script is executable:
# chmod 755 /etc/rc.d/rc.mysqld

# Before you can run MySQL, you must have a database. To install an initial
# database, do this as root:
#
# su - mysql
# mysql_install_db
#
# Note that step one is becoming the mysql user. It's important to do this
# before making any changes to the database, or mysqld won't be able to write
# to it later (this can be fixed with 'chown -R mysql.mysql /var/lib/mysql').
--More--

Poste le Sunday 11 January 2004 11:01:55
Répondre     Citer    

Veuillez vous authentifier auparavant pour commenter.

 

Ce forum !
Connection impossible through /tmp/mysql.sock (111)
Aide aux utilisateurs de la distribution Slackware et ses dérivées : Slax, Vector

Sauf mention contraire, les documentations publiées sont sous licence Creative-Commons