tech:adminer_interface_web_pour_db_mysql_postgres_sqlite
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:adminer_interface_web_pour_db_mysql_postgres_sqlite [2025/11/12 11:13] – Jean-Baptiste | tech:adminer_interface_web_pour_db_mysql_postgres_sqlite [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Adminer interface web pour DB mysql postgres sqlite | ||
| + | |||
| + | Voir aussi : | ||
| + | * [Sandman2](https:// | ||
| + | * DBeaver | ||
| + | |||
| + | Voir les données en brute directement en base. | ||
| + | |||
| + | Exemple avec MySQL (comme phpMyAdmin) | ||
| + | |||
| + | ## Install | ||
| + | |||
| + | ### Docker | ||
| + | |||
| + | ~~~bash | ||
| + | docker run -d --rm -p 8082:80 clue/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Exemple install et conf MariaDB | ||
| + | |||
| + | Télécharger " | ||
| + | |||
| + | Nous créerons un compte en lecture seul, pouvant accéder à toutes les bases de données | ||
| + | |||
| + | ~~~bash | ||
| + | mysql -u root -p | ||
| + | ~~~ | ||
| + | |||
| + | ~~~sql | ||
| + | GRANT SELECT ON *.* TO ' | ||
| + | FLUSH PRIVILEGES; | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | mkdir / | ||
| + | ~~~ | ||
| + | |||
| + | Déposer adminer-4.2.3-mysql-en.php sur / | ||
| + | |||
| + | Puis faire un lien index.php | ||
| + | ~~~bash | ||
| + | ln -s / | ||
| + | ~~~ | ||
| + | |||
| + | Installation de nginx et de php-fpm | ||
| + | ~~~bash | ||
| + | apt-get install nginx php-fpm php5-mysqlnd | ||
| + | ~~~ | ||
| + | |||
| + | Conf Nginx | ||
| + | |||
| + | `/ | ||
| + | ~~~nginx | ||
| + | server { | ||
| + | listen | ||
| + | |||
| + | location / { | ||
| + | root / | ||
| + | index index.php index.html index.htm; | ||
| + | } | ||
| + | |||
| + | |||
| + | location ~ \.php$ { | ||
| + | root / | ||
| + | fastcgi_index | ||
| + | fastcgi_split_path_info ^(.+\.php)(/ | ||
| + | fastcgi_pass unix:/ | ||
| + | #include fastcgi_params; | ||
| + | include fastcgi.conf; | ||
| + | } | ||
| + | } | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | ln -s / | ||
| + | nginx -t | ||
| + | service nginx reload | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Connexion | ||
| + | |||
| + | Ici nous ferons un tunnel SSH pour nous connecter | ||
| + | |||
| + | ~~~bash | ||
| + | ssh -L8081: | ||
| + | ~~~ | ||
| + | Allez sur http:// | ||
| + | |||
| + | |||
