TimWolla / docker-adminer

Database management in a single PHP file
https://hub.docker.com/_/adminer/
157 stars 69 forks source link

how to connect sqlite db with adminer(docker version) #78

Closed jet10000 closed 4 years ago

jet10000 commented 4 years ago

Is there a tutorial?

TimWolla commented 4 years ago

Load a PHP file /var/www/html/plugins-enabled/sqlite.php into the container with the following contents:

<?php
require("plugins/login-password-less.php");
// TODO: inline the result of password_hash() so that the password is not visible in source codes
return new AdminerLoginPasswordLess(password_hash("YOUR_PASSWORD_HERE", PASSWORD_DEFAULT));

see: https://github.com/vrana/adminer/blob/master/adminer/sqlite.php

If that does not work, please seek support at Adminer itself. Connecting to SQLite is not Docker specific.