Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 05/08/2021, à 22:52

polinux

Impossible de lancer Mysql [RESOLU]

Bonjour,
J'ai installé un serveur pour mon logiciel de comptabilité laurux.
Lorsque je lance laurux j'ai une fenêtre qui s'ouvre et qui dit :

"attention, la base Laurux 01 n'existe pas !
Veuillez remplir le fichier de configuration SVP!"

dans le terminal j'ai ceci en retour :

mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Pour info ma version ubuntu est la 20.04.2 mysql 8.0.26
J'ai essayé de lancer mysql :

sudo systemctl start mysql

le retour est :

Job for mysql.service failed because the control process exited with error code.

J'ai donc fais :

systemctl status mysql.service

le retour est :

mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset:>
Active: activating (start) since Wed 2021-08-04 23:26:02 CEST; 207ms ago
Process: 140995 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code>
Main PID: 141003 (mysqld)
Status: "Server startup in progress"
Tasks: 1 (limit: 6973)
Memory: 140.0M
CGroup: /system.slice/mysql.service
└─141003 /usr/sbin/mysqld

août 04 23:26:02 facon-piscine systemd[1]: Starting MySQL Community Server...

J'ai fais ensuite :

journalctl -xe

voici le retour :

Defined-By: systemd
-- Support: http://www.ubuntu.com/support

--
-- L'unité (unit) mysql.service a échoué, avec le résultat failed.
août 04 23:27:15 facon-piscine systemd[1]: mysql.service: Scheduled restart job>
-- Subject: Le redémarrage automatique d'une unité (unit) a été planifié
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Le redémarrage automatique de l'unité (unit) mysql.service a été planifié, en
-- raison de sa configuration avec le paramètre Restart=.
août 04 23:27:15 facon-piscine systemd[1]: Stopped MySQL Community Server.
-- Subject: L'unité (unit) mysql.service a terminé son arrêt
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) mysql.service a terminé son arrêt.
août 04 23:27:15 facon-piscine systemd[1]: Starting MySQL Community Server...
-- Subject: L'unité (unit) mysql.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support


--
-- L'unité (unit) mysql.service a commencé à démarrer.
lines 6370-6392/6392 (END)

J'ai essayé d'être le plus précis possible qu'en pensez vous ?
merci d'avance

paul

Dernière modification par polinux (Le 18/08/2021, à 10:26)

Hors ligne

#2 Le 05/08/2021, à 23:52

Vobul

Re : Impossible de lancer Mysql [RESOLU]

Regarde dans les logs de mysql (dans /var/log) pour voir ce qui cloche.


Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM

Hors ligne

#3 Le 06/08/2021, à 07:32

bruno

Re : Impossible de lancer Mysql [RESOLU]

Ou avec journald :

journalctl --no-pager -u mysql

Hors ligne

#4 Le 07/08/2021, à 17:05

polinux

Re : Impossible de lancer Mysql [RESOLU]

Désolé du temps mis pour répondre mais ma freebox à sauté avec l'orage le temps d'en recevoir une nouvelle ...

alors avec journald :

ode=exited, status=1/FAILURE
août 07 16:18:39 facon-piscine systemd[1]: mysql.service: Failed with result 'exit-code'.
août 07 16:18:39 facon-piscine systemd[1]: Failed to start MySQL Community Server.
août 07 16:18:39 facon-piscine systemd[1]: mysql.service: Scheduled restart job, restart counter is at 8027.
août 07 16:18:39 facon-piscine systemd[1]: Stopped MySQL Community Server.
août 07 16:18:39 facon-piscine systemd[1]: Starting MySQL Community Server...
août 07 16:18:42 facon-piscine systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
août 07 16:18:42 facon-piscine systemd[1]: mysql.service: Failed with result 'exit-code'.
août 07 16:18:42 facon-piscine systemd[1]: Failed to start MySQL Community Server.
août 07 16:18:42 facon-piscine systemd[1]: mysql.service: Scheduled restart job, restart counter is at 8028.
août 07 16:18:42 facon-piscine systemd[1]: Stopped MySQL Community Server.
août 07 16:18:42 facon-piscine systemd[1]: Starting MySQL Community Server...
août 07 16:18:44 facon-piscine systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
août 07 16:18:44 facon-piscine systemd[1]: mysql.service: Failed with result 'exit-code'.
août 07 16:18:44 facon-piscine systemd[1]: Failed to start MySQL Community Server.
août 07 16:18:44 facon-piscine systemd[1]: mysql.service: Scheduled restart job, restart counter is at 8029.
août 07 16:18:44 facon-piscine systemd[1]: Stopped MySQL Community Server.
août 07 16:18:44 facon-piscine systemd[1]: Starting MySQL Community Server...
août 07 16:18:47 facon-piscine systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
août 07 16:18:47 facon-piscine systemd[1]: mysql.service: Failed with result 'exit-code'.

bon il y en à encore un bon paquet mais peut être que cet extrait suffit tongue

Hors ligne

#5 Le 07/08/2021, à 17:50

bruno

Re : Impossible de lancer Mysql [RESOLU]

Il n'y a aucune information utile là de dans. Il faut regarder le fichier de log comme demandé en #2.

Hors ligne

#6 Le 07/08/2021, à 22:00

polinux

Re : Impossible de lancer Mysql [RESOLU]

le fichier à 195000 lignes je met tout le fichier ???
il y a un fichier  : error.log   un autre : error.log.1   et 2 dossiers error.log.4 gz      et  error.log.8 gz

Hors ligne

#7 Le 08/08/2021, à 08:23

bruno

Re : Impossible de lancer Mysql [RESOLU]

Non uniquement les dernières lignes juste après avoir tenté un redémarrage de Mysql :

sudo systemctl restart mysql

Hors ligne

#8 Le 08/08/2021, à 21:55

polinux

Re : Impossible de lancer Mysql [RESOLU]

vola j'ai copié le fond de la page après un redémarrage de mysql

2021-08-07T21:37:13.796164Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-08-07T21:37:13.797096Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Cannot assign requested address
2021-08-07T21:37:13.797238Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2021-08-07T21:37:13.797568Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-08-07T21:37:15.226917Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2)  (Ubuntu).
2021-08-08T19:41:16.528953Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.26-0ubuntu0.20.04.2) starting as process 1013
2021-08-08T19:41:16.554686Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-08-08T19:41:17.341658Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-08-08T19:41:17.599729Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
2021-08-08T19:41:17.599855Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
2021-08-08T19:41:17.601087Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-08-08T19:41:17.601233Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-08-08T19:41:17.602358Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Cannot assign requested address
2021-08-08T19:41:17.602499Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2021-08-08T19:41:17.602813Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-08-08T19:41:18.996752Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2)  (Ubuntu).

Hors ligne

#9 Le 08/08/2021, à 22:32

polinux

Re : Impossible de lancer Mysql [RESOLU]

Sur un autre forum on m'a donner ce  topic systemD et j'ai essayé de suivre le conseil mais cela n'a rien donné

pour info je mets la fin du fichier error.log.1 après avoir redémarré mysql

2021-08-07T21:37:08.591141Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Cannot assign requested address
2021-08-07T21:37:08.591283Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2021-08-07T21:37:08.591606Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-08-07T21:37:09.997985Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2)  (Ubuntu).
2021-08-07T21:37:10.519425Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.26-0ubuntu0.20.04.2) starting as process 933868
2021-08-07T21:37:10.526344Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-08-07T21:37:10.897073Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-08-07T21:37:11.067087Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
2021-08-07T21:37:11.067222Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
2021-08-07T21:37:11.067915Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-08-07T21:37:11.068058Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-08-07T21:37:11.069021Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Cannot assign requested address
2021-08-07T21:37:11.069166Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2021-08-07T21:37:11.069483Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-08-07T21:37:12.501273Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2)  (Ubuntu).
2021-08-07T21:37:13.174858Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.26-0ubuntu0.20.04.2) starting as process 933918
2021-08-07T21:37:13.182826Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-08-07T21:37:13.626235Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-08-07T21:37:13.795190Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
2021-08-07T21:37:13.795327Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
2021-08-07T21:37:13.796019Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-08-07T21:37:13.796164Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-08-07T21:37:13.797096Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Cannot assign requested address
2021-08-07T21:37:13.797238Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2021-08-07T21:37:13.797568Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-08-07T21:37:15.226917Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2)  (Ubuntu).
2021-08-08T19:41:16.528953Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.26-0ubuntu0.20.04.2) starting as process 1013
2021-08-08T19:41:16.554686Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-08-08T19:41:17.341658Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-08-08T19:41:17.599729Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
2021-08-08T19:41:17.599855Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
2021-08-08T19:41:17.601087Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-08-08T19:41:17.601233Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-08-08T19:41:17.602358Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Cannot assign requested address
2021-08-08T19:41:17.602499Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2021-08-08T19:41:17.602813Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-08-08T19:41:18.996752Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2)  (Ubuntu).

Dernière modification par polinux (Le 08/08/2021, à 22:39)

Hors ligne

#10 Le 09/08/2021, à 01:09

Vobul

Re : Impossible de lancer Mysql [RESOLU]

L'erreur est pourtant claire :

Can't start server: Bind on TCP/IP port: Cannot assign requested address
Do you already have another mysqld server running on port: 3306 ?

Il te dit ce qu'il ne va pas et en plus te pose une question pour te mettre sur la piste !


Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM

Hors ligne

#11 Le 09/08/2021, à 08:07

polinux

Re : Impossible de lancer Mysql [RESOLU]

bonjour et merci pour ton aide
Cette situation me rappel quand ma fille ne comprenait pas son problème mathématique alors que tout était dans l'énoncé !!!!
J'aurai du être moins sévère avec elle ...
Cette semaine on a eu un orage qui a cramé ma freebox est ce que c'est cet incident qui à pu mettre le bazard car je n'ai pas d'autre serveur sur le port 3306.
Y a t'il une commande qui permet de voir ce qui tente de se connecter sur ce port ?

Hors ligne

#12 Le 09/08/2021, à 08:49

bruno

Re : Impossible de lancer Mysql [RESOLU]

Oui, l'une ou l'autre de ces deux commandes :

sudo ss -tnlp
sudo netstat -tnlp

Hors ligne

#13 Le 09/08/2021, à 19:05

polinux

Re : Impossible de lancer Mysql [RESOLU]

Alors pour être certain de ne rien rater j'ai fais les deux

facon-piscine@facon-piscine:~$ sudo ss -tnlp
[sudo] Mot de passe de facon-piscine : 
State     Recv-Q    Send-Q       Local Address:Port        Peer Address:Port    Process                                                                         
LISTEN    0         4096         127.0.0.53%lo:53               0.0.0.0:*        users:(("systemd-resolve",pid=718,fd=13))                                      
LISTEN    0         128                0.0.0.0:22               0.0.0.0:*        users:(("sshd",pid=949,fd=3))                                                  
LISTEN    0         5                127.0.0.1:631              0.0.0.0:*        users:(("cupsd",pid=1075,fd=7))                                                
LISTEN    0         70               127.0.0.1:33060            0.0.0.0:*        users:(("mysqld",pid=760162,fd=22))                                            
LISTEN    0         511                      *:80                     *:*        users:(("apache2",pid=1032,fd=4),("apache2",pid=1031,fd=4),("apache2",pid=1030,fd=4),("apache2",pid=1029,fd=4),("apache2",pid=1028,fd=4),("apache2",pid=1021,fd=4))
LISTEN    0         128                   [::]:22                  [::]:*        users:(("sshd",pid=949,fd=4))                                                  
LISTEN    0         5                    [::1]:631                 [::]:*        users:(("cupsd",pid=1075,fd=6))                                       
facon-piscine@facon-piscine:~$ sudo netstat -tnlp
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat       PID/Program name    
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      718/systemd-resolve 
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      949/sshd: /usr/sbin 
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1075/cupsd          
tcp6       0      0 :::80                   :::*                    LISTEN      1021/apache2        
tcp6       0      0 :::22                   :::*                    LISTEN      949/sshd: /usr/sbin 
tcp6       0      0 ::1:631                 :::*                    LISTEN      1075/cupsd          

J'espère que la solution apparaîtra dans les deux retours, pour ma part je ne sais pas les analyser.

Hors ligne

#14 Le 09/08/2021, à 20:27

bruno

Re : Impossible de lancer Mysql [RESOLU]

C'est extrêmement bizarre que mysqld n'apparaisse que dans une seule des deux commandes.

LISTEN    0         70               127.0.0.1:33060            0.0.0.0:*        users:(("mysqld",pid=760162,fd=22))

Il y a bien un service mysqld en écoute sur le port 33060. À voir avec ce que tu as pu modifier dans la configuration du serveur mysql.

Hors ligne

#15 Le 09/08/2021, à 21:36

polinux

Re : Impossible de lancer Mysql [RESOLU]

Dernièrement je n'ai rien modifié,
comment voir la configuration du serveur mysql ?
bien sur je ne peux accéder au prompt mysql

est ce qu'une solution du type :

sudo apt autoremove --purge mysql

Puis

sudo apt install mysql-server

est envisageable sans créer davantage de problèmes ?

Dernière modification par polinux (Le 09/08/2021, à 22:02)

Hors ligne

#16 Le 10/08/2021, à 07:21

Vobul

Re : Impossible de lancer Mysql [RESOLU]

@bruno, oui puis en plus c'est 33060, pas 3306 ! étrange tout ça...


Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM

Hors ligne

#17 Le 10/08/2021, à 07:48

polinux

Re : Impossible de lancer Mysql [RESOLU]

Du coup je suis dans la panade parce que mon logiciel de compta m’est indispensable pour faire tourné ma boîte.
Est ce qu’il y a des fichiers en particulier a controller ?
J’avais un deuxième pc qui était connecté via un tunnel ssh pour les dossiers et qui se connectait à Laurux donc à mysql, il est tombé en panne et il est débranché est ce lui qui a pu apporter des perturbations quand il est tombé en panne ?

Hors ligne

#18 Le 10/08/2021, à 08:31

bruno

Re : Impossible de lancer Mysql [RESOLU]

Le port 33060 est utilisé par le protocole mysql X (eXtended). Apparemment c'est activé par défaut sur MySQL 8, ce que j'ignorais. Le retour en #13 n'en est pas moins bizarre…

Si tu veux réinstaller le serveur MySQL il faut utiliser cette commande :

sudo apt autoremove --purge ~n^mysql-server ~n^mariadb-server

voir le point 7 de la doc mysql

Hors ligne

#19 Le 13/08/2021, à 19:08

polinux

Re : Impossible de lancer Mysql [RESOLU]

Ok j’ai fais cette manipulation comme tu me l’indiques en suivant les points du chapitre 7 de la doc mysql.
Cela n’a pas changé mon problème, faut il reparamétrer des éléments à la suite de cette opération ?

Hors ligne

#20 Le 15/08/2021, à 09:01

bruno

Re : Impossible de lancer Mysql [RESOLU]

Normalement cette procédure aurait dû résoudre ton problème. En tout cas le serveur MySQl devrait être actif.

Hors ligne

#21 Le 17/08/2021, à 17:48

polinux

Re : Impossible de lancer Mysql [RESOLU]

J'ai été absent quelques jours j'ai redémaré mon ordi et j'ai lancé Laurux et j'ai toujours le même message d'erreur.

J'ai donc refais  :

journalctl --no-pager -u mysql
août 11 08:08:38 facon-piscine systemd[1]: mysql.service: Scheduled restart job, restart counter is at 27049.
août 11 08:08:38 facon-piscine systemd[1]: Stopped MySQL Community Server.
août 11 08:08:38 facon-piscine systemd[1]: Starting MySQL Community Server...
août 11 08:08:40 facon-piscine systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
août 11 08:08:40 facon-piscine systemd[1]: mysql.service: Failed with result 'exit-code'.
août 11 08:08:40 facon-piscine systemd[1]: Failed to start MySQL Community Server.
août 11 08:08:40 facon-piscine systemd[1]: Stopped MySQL Community Server.
août 11 08:12:20 facon-piscine systemd[1]: Starting MySQL Community Server...
août 11 08:12:21 facon-piscine systemd[1]: Started MySQL Community Server.
août 11 08:13:07 facon-piscine systemd[1]: Stopping MySQL Community Server...
août 11 08:13:08 facon-piscine systemd[1]: mysql.service: Succeeded.
août 11 08:13:08 facon-piscine systemd[1]: Stopped MySQL Community Server.
-- Reboot --
août 17 17:25:49 facon-piscine systemd[1]: Starting MySQL Community Server...
août 17 17:25:52 facon-piscine systemd[1]: Started MySQL Community Server.
facon-piscine@facon-piscine:~$ 

Voici également les dernières lignes du fichier erreur.log.1 qui est dans var/log

2021-08-11T06:13:08.811328Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2)  (Ubuntu).
2021-08-17T15:25:50.662979Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.26-0ubuntu0.20.04.2) starting as process 1091
2021-08-17T15:25:50.720312Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-08-17T15:25:51.474831Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-08-17T15:25:52.010072Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
2021-08-17T15:25:52.010436Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
2021-08-17T15:25:52.018341Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-08-17T15:25:52.018779Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-08-17T15:25:52.069301Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '127.0.0.1' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2021-08-17T15:25:52.069345Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.26-0ubuntu0.20.04.2'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu).
2021-08-17T15:26:33.481478Z 8 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2021-08-17T15:26:33.519861Z 9 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2021-08-17T15:26:41.304169Z 10 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'

J'ai l'impression que c'est tout ok

J'ai donc lancé en console Laurux voici le retour :

facon-piscine@facon-piscine:~$ cd Laurux
facon-piscine@facon-piscine:~/Laurux$ ./Laurux
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'facon-piscine'@'localhost' (using password: YES)
gbx3: warning: circular references detected:
gbx3:     1 Menuopt
gbx3:     1 LauruxConf
gbx3:     1 Fmenu
gbx3:     3 FExpander
gbx3:     3 Expander
gbx3:     1 GridViewSelection
gbx3:     1 _GridView_Rows
gbx3:     1 _GridView_Columns
gbx3:     1 ScrollView
gbx3:     1 ScrollArea
gbx3:    20 PictureBox
gbx3:     1 GridView
gbx3:    51 Picture

J'ai l'impression que mon passwd n'est pas reconnu.

J'ai pu maintenant aller dans un prompt mysql et j'ai listé mes utilisateurs ils n'y sont plus .

mysql> SELECT user, host, plugin, authentication_string FROM mysql.user;
+------------------+-----------+-----------------------+------------------------------------------------------------------------+
| user             | host      | plugin                | authentication_string                                                  |
+------------------+-----------+-----------------------+------------------------------------------------------------------------+
| debian-sys-maint | localhost | caching_sha2_password | $A$005$Wd(n!qJl\aHr[}nU3L3.Ucf30o.3iy4KfaYNHZhkZUOTZd/ZO7K4hGZdD. |
| mysql.infoschema | localhost | caching_sha2_password | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
| mysql.session    | localhost | caching_sha2_password | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
| mysql.sys        | localhost | caching_sha2_password | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
| root             | localhost | auth_socket           |                                                                        |
+------------------+-----------+-----------------------+------------------------------------------------------------------------+
5 rows in set (0,00 sec)

mysql> 

est ce normal après ma réinstallation de mysql ?

Dernière modification par polinux (Le 17/08/2021, à 18:02)

Hors ligne

#22 Le 17/08/2021, à 19:39

bruno

Re : Impossible de lancer Mysql [RESOLU]

Le serveur MySQL fonctionne, maintenant il faut restaurer tes anciennes bases à partir des sauvegardes.

Hors ligne

#23 Le 17/08/2021, à 21:34

polinux

Re : Impossible de lancer Mysql [RESOLU]

Je viens de créer mon user avec le même nom et le même mot de passe :

mysql> CREATE USER 'facon-piscine'@'localhost' IDENTIFIED BY '**********';
Query OK, 0 rows affected (0,01 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO 'facon-piscine'@'localhost';
Query OK, 0 rows affected (0,01 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0,00 sec)

puis j'ai fais :

mysql> SELECT user, host, plugin, authentication_string FROM mysql.user;
+------------------+-----------+-----------------------+------------------------------------------------------------------------+
| user             | host      | plugin                | authentication_string                                                  |
+------------------+-----------+-----------------------+------------------------------------------------------------------------+
| debian-sys-maint | localhost | caching_sha2_password | $A$005$Wd(n!qJl\aHr[}nU3L3.Ucf30o.3iy4KfaYNHZhkZUOTZd/ZO7K4hGZdD. |
| facon-piscine    | localhost | caching_sha2_password | $A$005$sgmbVc#z~
                                                                         *&D}_?>xVXImn5igjSqDgO9KacSMFsLv9.4Aj23llTFsOSN0VB |
| mysql.infoschema | localhost | caching_sha2_password | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
| mysql.session    | localhost | caching_sha2_password | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
| mysql.sys        | localhost | caching_sha2_password | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
| root             | localhost | auth_socket           |                                                                        |
+------------------+-----------+-----------------------+------------------------------------------------------------------------+
6 rows in set (0,00 sec)

j'ai contrôlé si j'avais ma base :

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0,00 sec)

donc je n'ai plus de base ? je vais donc voir coté Laurux pour restaurer ma base.

Dernière modification par polinux (Le 17/08/2021, à 21:38)

Hors ligne

#24 Le 18/08/2021, à 08:16

bruno

Re : Impossible de lancer Mysql [RESOLU]

Dans le lien que j'ai donné en #7 il est bien précisé que les bases de données ne seront plus accessibles. Et il faut toujours avoir une sauvegarde de ses bases de données.

Si tu as suivi strictement les manipulations proposées tu as une copie physique de tes bases de données dans /var/lib/mysql.bak
Pour tenter de les récupérer :
1. arrêt du serveur mysql

sudo systemctl stop mysql

2.déplacement des bases actuelles

sudo mv /var/lib/mysql /var/lib/mysql.new

3. restauration des anciennes bases

sudo mv /var/lib/mysql.bak /var/lib/mysql

4. attributions des droits d'accès

sudo chown -R mysql:mysql /var/lib/mysql

5. redémarrage du serveur mysql

sudo systemctl start mysql

Si ta copie des bases de données ne contenait pas d'erreurs cela devrait fonctionner.

Hors ligne

#25 Le 18/08/2021, à 10:25

polinux

Re : Impossible de lancer Mysql [RESOLU]

J'avais une sauvegarde mais il manquait 4 jours de facturation ce n'était pas dramatique mais avec ta manipulation j'ai pu restaurer toute ma base à jour.
Laurux c'est relancé sans problème. 

Un grand merci à vobul mais surtout à toi pour ton aide.
Je suis dans le domaine de la piscine si un jour tu as besoin n'hésites pas wink
Bonne journée

Hors ligne