Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1937 connectés 

 


Dernière réponse
Sujet : Problème de lancement Mysql
polytan

Pierre-Luc a écrit :

Le problème survient quand j'exécute la commande
 
mysqladmin -u root password 'password'
 
 
Le message suivant apparaît:
 
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
 
 
Le socket n'a pu être créé ? Mysql_install_db aurait échoué ?


 
essaie avec la commade dans le dossier ou il y a tous les fichiers pour MySQL (/usr/lib je crois)
 
# mysql -u root -p


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
polytan

Pierre-Luc a écrit :

Le problème survient quand j'exécute la commande
 
mysqladmin -u root password 'password'
 
 
Le message suivant apparaît:
 
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
 
 
Le socket n'a pu être créé ? Mysql_install_db aurait échoué ?


 
essaie avec la commade dans le dossier ou il y a tous les fichiers pour MySQL (/usr/lib je crois)
 
# mysql -u root -p

Cruchot Le fichier host.frm il est bien au bon endroit ? Quels sont ses droits ?
Pierre-Luc Voilà le contenu de ce fichier:
 
040728 19:06:45  mysqld started
040728 19:06:46  InnoDB: Started
040728 19:06:46  Fatal error: Can't open privilege tables: Can't find file: './m ysql/host.frm' (errno: 13)
040728 19:06:46  Aborting
 
040728 19:06:46  InnoDB: Starting shutdown...
040728 19:06:48  InnoDB: Shutdown completed
040728 19:06:48  /usr/libexec/mysqld: Shutdown Complete
 
040728 19:06:48  mysqld ended
 
Cruchot Par défaut la base 'mysql' existe après l'install.
 
Tu dois avoir un fichier 'nomdetamachine'.err sous /var/lib/mysql. Il y a quoi dedans ?
Pierre-Luc Quoiqu'en repensant à ce que mysql dit: "Starting mysqld daemon with databases from /var/lib/mysql", il est certain qu'il puisse y avoir une erreur. En effet aucune base de donnée n'est encore créée. C'est une idée comme ça...
Pierre-Luc Le démarrage semble aussi faire défaut:
 
root@henry:~# mysqld_safe &
[1] 20861
root@henry:~# Starting mysqld daemon with databases from /var/lib/mysql
040728 19:06:48  mysqld ended
 
 
[1]+  Done                    mysqld_safe
root@henry:~#
 
 
 
Plouf02 a mon avis, le service a pas ete demarré avt de lancer ta commande ;)
Klaimant ton serveur tourne ??
 
ps aux ?
Pierre-Luc J'ai installé la version 4.0.20 de Mysql à partir de l'installation de Slackware 10.0. Le problème se trouve au niveau de la configuration du mot de passe root mysql. Tout d'abord j'ai lancé mysql_install_db et obtenu:
 
Installing all prepared tables
040728 12:01:01  /usr/libexec/mysqld: Shutdown Complete
 
 
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
 
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 slack password 'new-password'
See the manual for more instructions.
 
NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
 
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
 
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
 
Please report any problems with the /usr/bin/mysqlbug script!
 
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
 
 
Le problème survient quand j'exécute la commande
 
mysqladmin -u root password 'password'
 
 
Le message suivant apparaît:
 
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
 
 
Le socket n'a pu être créé ? Mysql_install_db aurait échoué ?

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)