phpmyadmin + nginx sur pi5
Bonjour
J'ai décidé de prendre nginx comme serveur https sur mon pi5. Tout allait bien jusqu'à l'installation de phpmyadmin dont l'installateur par défaut de debian ne prend pas en compte nginx !
Le système fonctionne, mais avec deux messages qui ne me conviennent pas trop :
Code:
mysqli::real_connect(): (HY000/1045): Access denied for user 'phpmyadmin'@'localhost' (using password: YES)
Code:
La connexion au « controluser » telle que définie dans la configuration a échoué.
J'ai tiré les essais dans tous les sens.
Le fichier /etc/dbconfig-common/phpmyadmin.conf contient bien les informations :
Code:
1 2 3 4 5 6 7 8
| # dbc_dbuser: database user
# the name of the user who we will use to connect to the database.
dbc_dbuser='phpmyadmin'
# dbc_dbpass: database user password
# the password to use with the above username when connecting
# to a database, if one is required
dbc_dbpass='le_bon_mot_de_passe_pour_phpmyadmin' |
Si je me connecte sur la base de données avec phpmyadmin, je peux accéder au bases de données.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| root@serveur5:~# mysql -u phpmyadmin -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 64
Server version: 11.8.3-MariaDB-0+deb13u1 from Debian -- Please help get to 10k stars at https://github.com/MariaDB/Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> SHOW GRANTS FOR 'phpmyadmin'@'localhost';
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for phpmyadmin@localhost |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO `phpmyadmin`@`localhost` IDENTIFIED BY PASSWORD 'XXXXX' WITH GRANT OPTION |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER ON `phpmyadmin`.* TO `phpmyadmin`@`localhost` |
| GRANT ALL PRIVILEGES ON `phpyadmin`.* TO `phpmyadmin`@`localhost` |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
3 rows in set (0.000 sec) |
Le problème est où ?