Je suis en pleine installation de Mariadb/Mysql , je rencontre une erreur assez étonnante,
j'ai bien évidement regarder plusieurs forum spécialisée dans mariadb/mysql mais je n'arrive pas à aller plus loin ...
l'install apt c'est bien dérouler mais je n'ai pas de demande de creation de mot de passe comme expliquer ici : https://tecadmin.net/install-mariadb-on ... 9-stretch/
je suis bloquer à :
Code : Tout sélectionner
mysql_secure_installation
[sudo] Mot de passe de Grhim :
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
.....
Aborting!
Cleaning up...
Code : Tout sélectionner
mysql mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Code : Tout sélectionner
systemctl status mariadb
[sudo] Mot de passe de Grhim :
● mariadb.service - MariaDB 10.3.13 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Code : Tout sélectionner
sudo mysqladmin password newpassword
[sudo] Mot de passe de Grhim :
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
doit-je creer socket mysqld ? > (Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!)