4

HI we are using Adminer 4.3.1.

We choose system sqlite3 + localhost + location to DB file.

The error is not clear. I understood SQlite is supported. And I am directed to hardcoding functions to login. Don't I just need to use the form?

In short: how does one connect to a SQlite3 file using Admin?

Helpt appreciated ;)

enter image description here

snh_nl
  • 2,877
  • 6
  • 32
  • 62

2 Answers2

1

I have the same issue, it does look like SQLite is broken in 4.3.1 because it is fixed in 4.3.2-dev, interestingly the login form has fewer options when SQLite is selected.

enter image description here

You can get the latest version by cloning the github repo and running adminer/sqlite.php

CodeMonkey
  • 3,271
  • 25
  • 50
1

You need to add a plugin, which returns an instance of AdminerLoginPasswordLess and put it in the directory plugins-enabled.

Content for ./plugins-enabled/login-password-less.php:

<?php
require_once('plugins/login-password-less.php');

return new AdminerLoginPasswordLess(password_hash("my_password", PASSWORD_DEFAULT));

Tested with Adminer v4.8.1.

If you want a ready-to-use Docker container which solves this problem, see this link.

squarebrackets
  • 987
  • 2
  • 12
  • 19