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.

#51 Le 29/12/2022, à 09:20

xubu1957

Re : Pb avec le développement d'un site en local

Bonjour,

Montre le sources.list avec la numérotation :

find /etc/apt -type f \( -name '*.list*' -o -name '*.sources' \) -exec bash -c 'echo -e "\n\t$1\n"; [ "${1##*.}" = "list" -o "${1##*.}" = "sources" ] && cat -n "$1"' _ '{}' \;

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#52 Le 29/12/2022, à 09:40

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

Bonjour et merci xubu1957,

claude@claude-desktop:~$ find /etc/apt -type f \( -name '*.list*' -o -name '*.sources' \) -exec bash -c 'echo -e "\n\t$1\n"; [ "${1##*.}" = "list" -o "${1##*.}" = "sources" ] && cat -n "$1"' _ '{}' \;

	/etc/apt/sources.list.save


	/etc/apt/sources.list

     1	# deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted
     2	
     3	# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4	# newer versions of the distribution.
     5	deb http://fr.archive.ubuntu.com/ubuntu/ jammy main restricted
     6	# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
     7	
     8	## Major bug fix updates produced after the final release of the
     9	## distribution.
    10	deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
    11	# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    12	
    13	## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14	## team. Also, please note that software in universe WILL NOT receive any
    15	## review or updates from the Ubuntu security team.
    16	deb http://fr.archive.ubuntu.com/ubuntu/ jammy universe
    17	# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic universe
    18	deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates universe
    19	# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
    20	
    21	## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    22	## team, and may not be under a free licence. Please satisfy yourself as to 
    23	## your rights to use the software. Also, please note that software in 
    24	## multiverse WILL NOT receive any review or updates from the Ubuntu
    25	## security team.
    26	deb http://fr.archive.ubuntu.com/ubuntu/ jammy multiverse
    27	# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
    28	deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
    29	# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    30	
    31	## N.B. software from this repository may not have been tested as
    32	## extensively as that contained in the main release, although it includes
    33	## newer versions of some applications which may provide useful features.
    34	## Also, please note that software in backports WILL NOT receive any review
    35	## or updates from the Ubuntu security team.
    36	deb http://fr.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
    37	# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    38	
    39	
    40	deb http://security.ubuntu.com/ubuntu jammy-security main restricted
    41	# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
    42	deb http://security.ubuntu.com/ubuntu jammy-security universe
    43	# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
    44	deb http://security.ubuntu.com/ubuntu jammy-security multiverse
    45	# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

	/etc/apt/sources.list.d/signal-xenial.list.save


	/etc/apt/sources.list.d/libv4l-ubuntu-stable-focal.list

     1	# deb http://ppa.launchpad.net/libv4l/stable/ubuntu jammy main # désactivé pour la mise à niveau vers jammy
     2	# deb-src http://ppa.launchpad.net/libv4l/stable/ubuntu focal main

	/etc/apt/sources.list.d/opera-stable.list.distUpgrade


	/etc/apt/sources.list.d/libv4l-ubuntu-stable-focal.list.save


	/etc/apt/sources.list.d/archive_uri-http_ppa_ondrej_php_bionic-jammy.list

     1	deb http://ppa:ondrej/php/bionic 18.04
     2	# deb-src http://ppa:ondrej/php/bionic 18.04

	/etc/apt/sources.list.d/signal-xenial.list.distUpgrade


	/etc/apt/sources.list.d/opera-stable.list.save


	/etc/apt/sources.list.d/libv4l-ubuntu-stable-focal.list.distUpgrade


	/etc/apt/sources.list.d/signal-xenial.list

     1	# deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main # désactivé pour la mise à niveau vers focal
     2	# deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main # désactivé pour la mise à niveau vers focal
     3	# deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main # désactivé pour la mise à niveau vers jammy

	/etc/apt/sources.list.d/opera-stable.list

     1	# This file makes sure that Opera Browser is kept up-to-date
     2	# as part of regular system upgrades
     3	
     4	# deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases) désactivé pour la mise à niveau vers jammy

	/etc/apt/sources.list.distUpgrade

Hors ligne

#53 Le 29/12/2022, à 09:48

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

Hier, je n'ai pas réussi à purger définitivement le ppa d'Ondrej (sans doute parce-que je suis déjà en Ubuntu 22.04 et non plus en Bionic).
J'ai donc essayé de le réinstaller dans sa version Bionic, mais je n'y suis pas arrivé. Et pire encore, je m'aperçois maintenant que mon "Gestionnaire de mise à jour" est inactif !
Quel bazar !

Je me demande si je ne devrais pas procéder:
1. à l'effacement complet des éléments placés par l'installation initiale de Lamp,
2. à une nouvelle installation complète de Lamp.

Mais pour réaliser le n°1, j'ignore la séquence propre des commandes à exécuter en mode terminal.

Dernière modification par Claude LENDREVIE (Le 29/12/2022, à 10:13)

Hors ligne

#54 Le 29/12/2022, à 10:21

bruno

Re : Pb avec le développement d'un site en local

  1. Supprimer le fichier erroné :

    sudo rm /etc/apt/sources.list.d/archive_uri-http_ppa_ondrej_php_bionic-jammy.list
  2. S'inspirer de la manip indiquée par  Nany (lien donné en #48). À savoir :

    sudo add-apt-repository -y ppa:ondrej/php
    sudo apt update
    sudo apt full-upgrade
    sudo ppa-purge ppa:ondrej/php

Hors ligne

#55 Le 29/12/2022, à 10:22

iznobe

Re : Pb avec le développement d'un site en local

Claude LENDREVIE a écrit :

Hier, je n'ai pas réussi à purger définitivement le ppa d'Ondrej (sans doute parce-que je suis déjà en Ubuntu 22.04 et non plus en Bionic).
J'ai donc essayé de le réinstaller dans sa version Bionic, mais je n'y suis pas arrivé. Et pire encore, je m'aperçois maintenant que mon "Gestionnaire de mise à jour" est inactif !
Quel bazar !

Je me demande si je ne devrais pas procéder:
1. à l'effacement complet des éléments placés par l'installation initiale de Lamp,
2. à une nouvelle installation complète de Lamp.

Mais pour réaliser le n°1, j'ignore la séquence propre des commandes à exécuter en mode terminal.

Bonjour , vu que PPA-purge ne fonctionnera pas correctement , il va falloir proceder a la purge manuelle des paquets installés sur ton systeme du depot en question .
deja il faut commencer par remettre tes sources d' aplomb .
donne :

sudo apt update

et

find /etc/apt -type f \( -name '*.list*' -o -name '*.sources' \) -exec bash -c 'echo -e "\n\t$1\n"; [ "${1##*.}" = "list" -o "${1##*.}" = "sources" ] && cat -n "$1"' _ '{}' \;

retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#56 Le 29/12/2022, à 10:36

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

@ bruno,

Merci. Je viens d'appliquer à la lettre tes commandes dictées dans ton post n°#54. Et tout s'est bien déroulé, y compris la purge finale d'Ondrej !
Maintenant, je pense qu'il me faut entièrement redémarrer mon PC ... et tester.

Dernière modification par Claude LENDREVIE (Le 29/12/2022, à 10:56)

Hors ligne

#57 Le 29/12/2022, à 10:54

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

C'est déjà mieux:
1. je relance Apache2 = ok,
2. dans mon navigateur, la relance de "localhost" donne bien pour réponse = "it's works !"

Mais je pars toujours en erreur avec les commandes:
1. localhost/phpmyadmin dans mon navigateur,
2. sudo mysql en mode Terminal.

claude@claude-desktop:~$ sudo mysql
[sudo] Mot de passe de claude : 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Et, de fait, je ne possède pas de sous-dossier "mysqld" sous /var/run".

Dernière modification par Claude LENDREVIE (Le 29/12/2022, à 10:59)

Hors ligne

#58 Le 29/12/2022, à 10:59

bruno

Re : Pb avec le développement d'un site en local

On a déjà dépanné le serveur Mysql dans ce fil…
Redonne :

systemctl status mysql

et en cas d'erreur ;

journalctl --no-pager -u mysql

Hors ligne

#59 Le 29/12/2022, à 11:03

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

claude@claude-desktop:~$ systemctl status mysql
○ mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset>
     Active: inactive (dead)
claude@claude-desktop:~$ journalctl --no-pager -u mysql
déc. 22 09:35:27 claude-desktop systemd[1]: Stopping MySQL Community Server...
déc. 22 09:35:28 claude-desktop systemd[1]: mysql.service: Deactivated successfully.
déc. 22 09:35:28 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 22 09:35:28 claude-desktop systemd[1]: mysql.service: Consumed 19.097s CPU time.
-- Boot a9bbb2d5788d4d02b67df717d7433508 --
déc. 22 09:35:56 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 22 09:35:58 claude-desktop systemd[1]: Started MySQL Community Server.
déc. 22 11:20:42 claude-desktop systemd[1]: Stopping MySQL Community Server...
déc. 22 11:20:43 claude-desktop systemd[1]: mysql.service: Deactivated successfully.
déc. 22 11:20:43 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 22 11:20:43 claude-desktop systemd[1]: mysql.service: Consumed 45.686s CPU time.
-- Boot 8d4db7b6c73a45d9aef094e7e97355dc --
déc. 23 15:29:46 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 23 15:29:48 claude-desktop systemd[1]: Started MySQL Community Server.
déc. 23 15:55:36 claude-desktop systemd[1]: Stopping MySQL Community Server...
déc. 23 15:55:37 claude-desktop systemd[1]: mysql.service: Deactivated successfully.
déc. 23 15:55:37 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 23 15:55:37 claude-desktop systemd[1]: mysql.service: Consumed 10.715s CPU time.
-- Boot 8bebf5fb53904335a5a4bf53e9bd8700 --
déc. 24 14:19:23 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 24 14:19:25 claude-desktop systemd[1]: Started MySQL Community Server.
déc. 24 15:58:38 claude-desktop systemd[1]: Stopping MySQL Community Server...
déc. 24 15:58:39 claude-desktop systemd[1]: mysql.service: Deactivated successfully.
déc. 24 15:58:39 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 24 15:58:39 claude-desktop systemd[1]: mysql.service: Consumed 43.015s CPU time.
déc. 24 16:32:35 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 24 16:32:35 claude-desktop mysqld[42760]: 2022-12-24T15:32:35.360346Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 42760
déc. 24 16:32:35 claude-desktop mysqld[42760]: 2022-12-24T15:32:35.362546Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 24 16:32:35 claude-desktop mysqld[42760]: 2022-12-24T15:32:35.362586Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 24 16:32:35 claude-desktop mysqld[42760]: 2022-12-24T15:32:35.362740Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 24 16:32:35 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 24 16:32:35 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 24 16:32:35 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 24 16:32:35 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 1.
déc. 24 16:32:35 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 24 16:32:35 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 24 16:32:35 claude-desktop mysqld[42771]: 2022-12-24T15:32:35.905422Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 42771
déc. 24 16:32:35 claude-desktop mysqld[42771]: 2022-12-24T15:32:35.907601Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 24 16:32:35 claude-desktop mysqld[42771]: 2022-12-24T15:32:35.907651Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 24 16:32:35 claude-desktop mysqld[42771]: 2022-12-24T15:32:35.907762Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 24 16:32:35 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 24 16:32:35 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 24 16:32:35 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 24 16:32:36 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 2.
déc. 24 16:32:36 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 24 16:32:36 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 24 16:32:36 claude-desktop mysqld[42780]: 2022-12-24T15:32:36.407100Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 42780
déc. 24 16:32:36 claude-desktop mysqld[42780]: 2022-12-24T15:32:36.409286Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 24 16:32:36 claude-desktop mysqld[42780]: 2022-12-24T15:32:36.409337Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 24 16:32:36 claude-desktop mysqld[42780]: 2022-12-24T15:32:36.409449Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 24 16:32:36 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 24 16:32:36 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 24 16:32:36 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 24 16:32:36 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 3.
déc. 24 16:32:36 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 24 16:32:36 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 24 16:32:36 claude-desktop mysqld[42790]: 2022-12-24T15:32:36.906838Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 42790
déc. 24 16:32:36 claude-desktop mysqld[42790]: 2022-12-24T15:32:36.909187Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 24 16:32:36 claude-desktop mysqld[42790]: 2022-12-24T15:32:36.909235Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 24 16:32:36 claude-desktop mysqld[42790]: 2022-12-24T15:32:36.909369Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 24 16:32:36 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 24 16:32:36 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 24 16:32:36 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 24 16:32:37 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 4.
déc. 24 16:32:37 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 24 16:32:37 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 24 16:32:37 claude-desktop mysqld[42800]: 2022-12-24T15:32:37.404953Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 42800
déc. 24 16:32:37 claude-desktop mysqld[42800]: 2022-12-24T15:32:37.407154Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 24 16:32:37 claude-desktop mysqld[42800]: 2022-12-24T15:32:37.407204Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 24 16:32:37 claude-desktop mysqld[42800]: 2022-12-24T15:32:37.407341Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 24 16:32:37 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 24 16:32:37 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 24 16:32:37 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 24 16:32:37 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
déc. 24 16:32:37 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 24 16:32:37 claude-desktop systemd[1]: mysql.service: Start request repeated too quickly.
déc. 24 16:32:37 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 24 16:32:37 claude-desktop systemd[1]: Failed to start MySQL Community Server.
-- Boot 31748d5d137e470ebd25b6ed5c5ae50d --
déc. 26 11:24:31 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 26 11:24:31 claude-desktop mysqld[13975]: 2022-12-26T10:24:31.759739Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 13975
déc. 26 11:24:31 claude-desktop mysqld[13975]: 2022-12-26T10:24:31.763586Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 26 11:24:31 claude-desktop mysqld[13975]: 2022-12-26T10:24:31.763639Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 26 11:24:31 claude-desktop mysqld[13975]: 2022-12-26T10:24:31.763772Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 26 11:24:31 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 26 11:24:31 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 26 11:24:31 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 26 11:24:32 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 1.
déc. 26 11:24:32 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 26 11:24:32 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 26 11:24:32 claude-desktop mysqld[13985]: 2022-12-26T10:24:32.288260Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 13985
déc. 26 11:24:32 claude-desktop mysqld[13985]: 2022-12-26T10:24:32.290448Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 26 11:24:32 claude-desktop mysqld[13985]: 2022-12-26T10:24:32.290497Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 26 11:24:32 claude-desktop mysqld[13985]: 2022-12-26T10:24:32.290625Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 26 11:24:32 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 26 11:24:32 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 26 11:24:32 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 26 11:24:32 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 2.
déc. 26 11:24:32 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 26 11:24:32 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 26 11:24:32 claude-desktop mysqld[13994]: 2022-12-26T10:24:32.787325Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 13994
déc. 26 11:24:32 claude-desktop mysqld[13994]: 2022-12-26T10:24:32.789593Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 26 11:24:32 claude-desktop mysqld[13994]: 2022-12-26T10:24:32.789642Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 26 11:24:32 claude-desktop mysqld[13994]: 2022-12-26T10:24:32.789769Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 26 11:24:32 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 26 11:24:32 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 26 11:24:32 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 26 11:24:33 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 3.
déc. 26 11:24:33 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 26 11:24:33 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 26 11:24:33 claude-desktop mysqld[14003]: 2022-12-26T10:24:33.287419Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 14003
déc. 26 11:24:33 claude-desktop mysqld[14003]: 2022-12-26T10:24:33.289680Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 26 11:24:33 claude-desktop mysqld[14003]: 2022-12-26T10:24:33.289728Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 26 11:24:33 claude-desktop mysqld[14003]: 2022-12-26T10:24:33.289845Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 26 11:24:33 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 26 11:24:33 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 26 11:24:33 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 26 11:24:33 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 4.
déc. 26 11:24:33 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 26 11:24:33 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 26 11:24:33 claude-desktop mysqld[14012]: 2022-12-26T10:24:33.800446Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.22.04.1) starting as process 14012
déc. 26 11:24:33 claude-desktop mysqld[14012]: 2022-12-26T10:24:33.802704Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
déc. 26 11:24:33 claude-desktop mysqld[14012]: 2022-12-26T10:24:33.802753Z 0 [ERROR] [MY-010119] [Server] Aborting
déc. 26 11:24:33 claude-desktop mysqld[14012]: 2022-12-26T10:24:33.802883Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31-0ubuntu0.22.04.1)  (Ubuntu).
déc. 26 11:24:33 claude-desktop systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
déc. 26 11:24:33 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 26 11:24:33 claude-desktop systemd[1]: Failed to start MySQL Community Server.
déc. 26 11:24:34 claude-desktop systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
déc. 26 11:24:34 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 26 11:24:34 claude-desktop systemd[1]: mysql.service: Start request repeated too quickly.
déc. 26 11:24:34 claude-desktop systemd[1]: mysql.service: Failed with result 'exit-code'.
déc. 26 11:24:34 claude-desktop systemd[1]: Failed to start MySQL Community Server.
-- Boot abf71d59929f481a8ae035419b086574 --
déc. 28 16:10:20 claude-desktop systemd[1]: Starting MySQL Community Server...
déc. 28 16:10:21 claude-desktop systemd[1]: Started MySQL Community Server.
déc. 28 18:38:17 claude-desktop systemd[1]: Stopping MySQL Community Server...
déc. 28 18:38:18 claude-desktop systemd[1]: mysql.service: Deactivated successfully.
déc. 28 18:38:18 claude-desktop systemd[1]: Stopped MySQL Community Server.
déc. 28 18:38:18 claude-desktop systemd[1]: mysql.service: Consumed 1min 4.609s CPU time.
claude@claude-desktop:~$ 

Hors ligne

#60 Le 29/12/2022, à 11:14

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

Voici ce que je viens de tenter:

claude@claude-desktop:~$ sudo systemctl restart mysql
claude@claude-desktop:~$ sudo mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Visiblement, mysql fonctionne désormais. Mais je ne peux y accéder. Et la documentation précise que désormais, il suffit d'entrer sous mysql (cf. commande: sudo mysql) pour créer éventuellement un super-administrateur avec un mot de passe personnalisé !

Dernière modification par Claude LENDREVIE (Le 29/12/2022, à 11:26)

Hors ligne

#61 Le 29/12/2022, à 11:54

bruno

Re : Pb avec le développement d'un site en local

Claude LENDREVIE a écrit :

Et la documentation précise que désormais, il suffit d'entrer sous mysql (cf. commande: sudo mysql) pour créer éventuellement un super-administrateur avec un mot de passe personnalisé !

Sauf si tu avais créé un mot de passe auparavant pour l'utilisateur root de mysql. Dans ce cas pour se connecter :

mysql -u root -p

puis saisir le mot de passe.

Hors ligne

#62 Le 29/12/2022, à 16:21

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

OK Bruno. Mais après avoir saisi mon mot de passe, on me répond:

claude@claude-desktop:~$ mysql -u root -p
Enter password: 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

... ce qui est aberrant puisque je n'ai pas de sous-dossier "/var/run/mysqld" !

Hors ligne

#63 Le 29/12/2022, à 16:58

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

bruno a écrit :
Claude LENDREVIE a écrit :

Et la documentation précise que désormais, il suffit d'entrer sous mysql (cf. commande: sudo mysql) pour créer éventuellement un super-administrateur avec un mot de passe personnalisé !

Sauf si tu avais créé un mot de passe auparavant pour l'utilisateur root de mysql. Dans ce cas pour se connecter :

mysql -u root -p

puis saisir le mot de passe.

nb: Avant cette période de galère que je vis ces jours-ci, je n'utilisais que le service /localhost/phpmyadmin. Avec l'utilisateur "root" et son "mot de passe". Puisque je n'avais jamais utilisé l'accès à mes BDD depuis le terminal, je n'ai JAMAIS utilisé de commande telle que: "sudo mysql", ni "mysql -u root - p". Je ne sais donc pas où se trouve l'issue d'un tel problème.

Hors ligne

#64 Le 29/12/2022, à 18:12

bruno

Re : Pb avec le développement d'un site en local

#62 signifie que mysql ne fonctionne pas.
Il faut à nouveau que tu vérifies que le service et lancé et ce que disent les logs s'il ne l'est pas.
Si tu as toujours cette erreur :

Could not open file '/var/log/mysql/error.log'

il faudra trouver qui (ou quoi) supprime le dossier /var/log/mysql.

Hors ligne

#65 Le 30/12/2022, à 12:40

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

bruno a écrit :

#62 signifie que mysql ne fonctionne pas.
Il faut à nouveau que tu vérifies que le service et lancé et ce que disent les logs s'il ne l'est pas.
Si tu as toujours cette erreur :

Could not open file '/var/log/mysql/error.log'

il faudra trouver qui (ou quoi) supprime le dossier /var/log/mysql.

Bonjour Bruno,

De guerre lasse, j'ai supprimé les installations de Lamp puis réinstaller un nouveau Lamp.
Résultats:
1. fonctionnement OK de mysql depuis un Terminal,
2. fonctionnement OK de localhost,
3. réinstallation de phpmyadmin: fonctionnement OK depuis le navigateur.

J'installe maintenant, avec Kickstart en local le backup complet d'un site en production effectué par Akeeba.OK pour le "core", mais j'ai un message d'erreur au moment d'implanter ma BDD:

"SESSION variable : max_allowed_packet non conforme. Mettre SET GLOBAL"

.
Ce que je fais dans le fichier "php.ini" dans le dossier "php/8.1" & "php8.2" de mon PC. Je le redémarre pour une bonne prise en compte de nouveau "php.ini" ... mais rien n'y fait. Je boucle avec ce message et sans pouvoir installer ma BDD.

Hors ligne

#66 Le 30/12/2022, à 12:52

bruno

Re : Pb avec le développement d'un site en local

Si tu essaies de modifier une directive pour le serveur MySQL dans un fichier php.ini, cela ne risque pas de fonctionner.

Hors ligne

#67 Le 31/12/2022, à 12:53

Claude LENDREVIE

Re : Pb avec le développement d'un site en local

OK pour mon incompréhension.
J'ai donc corrigé le tir en fournissant, depuis le Terminal et sous Mysql, la commande:
msql> SET GLOBAL max_allowed_packet=128000000;
Cette requête est bien acceptée. Par contre, et ceci me surprend, l'écriture suivante est rejetée: msql> SET GLOBAL max_allowed_packet=128M;
Mais au moment de me réimplanter ma BDD, l'erreur suivante apparait:


Database restoration
An error occurred while restoring the database. The error message can be found below. Click on the × button at the top right of this dialog message to close it and return to the database restoration page.
Unable to connect to the Database: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value

J'avais pourtant bien créé un super-utilisateur de Mysql en lui confiant tous les droits.
J'ai fait de nombreuses recherches dans les docs, et je ne trouve pas comment traduire précisément un telle commande.

ps: j'utilise Akeeba Kickstart

Dernière modification par Claude LENDREVIE (Le 05/01/2023, à 09:19)

Hors ligne