[Linux-bruxelles] Mysql démarrage automatique

ASH sea-unicorn at tiscali.be
Dim 7 Mar 12:13:28 CET 2004


Bonjour !

Le soleil brille ...non? Bon peut-être qu'il peut briller dans ma 
lanterne qui me sert de cervelle !?

Voilà je cherche un moyen de faire démarrer *mysql automatiquement *

Car en temps normal, j'ai ceci comme message :

*shell>sarmacande:/# mysql -u root -p*

*shell>Enter password:*

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


D'après le Net , je dois démarrer le service avant par le shell suivant:

*shell>sarmacande:/# mysqld &*

*[1] 689*

*shell>sarmacande:/# mysqld: ready for connections*

**
Et seulement après je peux avoir accès à claroline ou phpMyAdmin quand j 
etape leur URL dans le navigateur

Dans la documentation sur le site de mysql, j'avoue qu'il a des choses 
que je ne comprend pas 
(http://mysql.mainseek.com/doc/fr/Automatic_start.html)

Exemples:
*                shell> mysql.server start*
             *   shell> mysql.server stop*

Ne fonctionne pas sur mon poste ?!

Et aussi ceci quand je fais les tests ...
*
                shell> mysqladmin variables
                mysqladmin: connect to server at 'localhost' failed
                error: 'Access denied for user: 'root at localhost' (Using 
password: NO)'*

et/ou

*		shell> BINDIR/mysqladmin version
*		bash: BINDIR/mysqladmin: No such file or directory
*		shell> BINDIR/mysqladmin variables*
		bash: BINDIR/mysqladmin: No such file or directory


Quelqu'un peut m'orienter ?

Ash (alias Faty)

Pour info voici la configuration de mon fichier */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*


*socket = /var/run/mysql/mysqld.sock*



*[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*





	
	









Plus d'informations sur la liste de diffusion Linux-bruxelles