But I don’t understand why you say MySQL is poorly installed, since I can show you that it works with the following:
sudo service mysql start
[sudo] Mot de passe de thomas :
thomas@thomas-K53SD:~/Documents/DATABASE$ mysql -p Essai
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.23-0ubuntu0.20.10.1 (Ubuntu)
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| Essai |
| information_schema |
+--------------------+
2 rows in set (0.00 sec)
mysql> describe T_Essai;
+-----------+-----------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-----------+------+-----+---------+----------------+
| id_Essai | int | NO | PRI | NULL | auto_increment |
| NOM | char(200) | YES | | NULL | |
| PRENOM | char(20) | YES | | NULL | |
| TELEPHONE | char(15) | YES | | NULL | |
| MAIL | char(20) | YES | | NULL | |
| VILLE | char(100) | YES | | NULL | |
| PAYS | char(100) | YES | | NULL | |
+-----------+-----------+------+-----+---------+----------------+
7 rows in set (0.00 sec)
mysql>
je te rappelle que j'ai installé mysql client et serveur avec le gestionnaire synaptique de Ubuntu, l'an dernier. J'ai travaillé avec sans rencontrer de pb particulier. Puis avec le même gestionnaire, j'ai installé apache2 dont j'ai vérifié hier encore, qu'il se lance avec systemctl status sans relever d'erreur. Ce n'est qu'en installant phpmysql que ce dernier relève une erreur !
Mais pourquoi ne pas examiner les logs des installations ? pourrais-tu me dire où les trouver et saurais-tu les analyser ?
Merci d'avoir examiné ce pb et d'avoir pris le temps de me répondre !
Encore une précision: je n'ai pas mariadb. Est-ce indispensable pour phpmyadmin ?
Encore une preuve du démarrage de mysql:
systemctl status mysql
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset:>
Active: active (running) since Fri 2021-04-30 11:20:17 CEST; 29min ago
Main PID: 228536 (mysqld)
Status: "Server is operational"
Tasks: 38 (limit: 9169)
Memory: 352.3M
CGroup: /system.slice/mysql.service
└─228536 /usr/sbin/mysqld
avril 30 11:20:15 thomas-K53SD systemd[1]: Starting MySQL Community Server...
avril 30 11:20:17 thomas-K53SD systemd[1]: Started MySQL Community Server.