[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

(erreur2002) impossible de se connecter au socket mysql



Bonjour,

J'ai tenté d'installer mysql sur mon serveur debian-woody en effectuant la commande suivante:

apt-get install mysql-common mysql-server

Néanmoins quand je tente de démarrer mysql en tapant mysql j'ai le message d'erreur suivant:

ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)

Afin de regarder si c'est pas un problème au niveau du my.conf j'ai regardé le fichier de configuration:

cat /etc/mysql/my.cnf
# You can copy this to one of:
# /etc/mysql/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/lib/mysql) or
# ~/.my.cnf to set user-specific options.
#
# One can use all long options that the program supports.
# Run the program with --help to get a list of available options

# This will be passed to all mysql clients
[client]
#password       = my_password
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

[safe_mysqld]
err-log         = /var/log/mysql/mysql.err

[mysqld]
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
#
# You can also put it into /var/log/mysql/mysql.log but I leave it in /var/log
# for backward compatibility. Both location gets rotated by the cronjob.
#log            = /var/log/mysql/mysql.log
log             = /var/log/mysql.log
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
language        = /usr/share/mysql/english
skip-locking
#
# The skip-networkin option will no longer be set via debconf menu.
# You have to manually change it if you want networking i.e. the server
# listening on port 3306. The default is "disable" - for security reasons.
skip-networking
set-variable    = key_buffer=16M
set-variable    = max_allowed_packet=1M
set-variable    = thread_stack=128K
#
# Here you can see queries with especially long duration
#log-slow-queries       = /var/log/mysql/mysql-slow.log
#
# The following can be used as easy to replay backup logs or for replication
#server-id              = 1
#log-bin                = /var/log/mysql/mysql-bin.log
#binlog-do-db           = include_database_name
#binlog-ignore-db       = include_database_name
#
# Read the manual if you want to enable InnoDB!
skip-innodb

[mysqldump]
quick
set-variable    = max_allowed_packet=1M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
set-variable    = key_buffer=16M


J'ai googlé un peu pour essayer de trouver une réponse mais celà ne m'a pas beaucoup aidé.
Apparemment les fichiers existent bien dans le répertoire en question:

clone:/var/run/mysqld# dir
mysqld.pid  mysqld.sock


Si quelqu'un avait dejà rencontré ce problème, ce serait sympa de m'indiquer ce que je pourrai faire afin de pouvoir démarrer le serveur mysql.


Meilleures salutations,


Jean-Jacques






Reply to: