我想使用名为Adminer Editor的 Adminer 的“轻型”版本来访问同一目录中的 SQLite3 数据库文件。
官方网站上的文档似乎不太广泛,我仍在尝试,花了很长时间才找到可行的解决方案。
我能够克服这个None of the supported PHP extensions (SQLite3, PDO_SQLite) are available.错误。
后来我就被这个Database does not support password.错误卡住了。
此后我遇到了错误attempt to write a readonly database。
我希望我的经验能够帮助其他使用管理员编辑器的人。
我的系统是基于 Archlinux 的 Manjaro,某些命令可能与您的系统不同。
sudo pacman -S php-sqlite/etc/php/php.ini:通过;extension=sqlite3;sudo systemctl restart httpd.service。<?php phpinfo();您可以通过写入 php 文件并在浏览器中打开它来检查 SQLite 在 php 中是否处于活动状态。adminer-editor.php.plugin.php并将它们放入子文件夹中。login-password-less.phppluginssqlite3 database.db在终端中创建它。sqlite.php从adminer github 存储库下载文件并将其另存为index.php. adminer-editor.php
database.db
index.php
plugins/
|__ login-password-less.php
|__ plugin.php
Run Code Online (Sandbox Code Playgroud)
index.php文件。我的文件内容是这样的: adminer-editor.php
database.db
index.php
plugins/
|__ login-password-less.php
|__ plugin.php
Run Code Online (Sandbox Code Playgroud)
index.php。编辑:一些需要注意的事情:
micro确实打破了它们,nano但没有。我这边留下了一些问题:
// TODO意思?有没有一种方法可以让我不必将密码以纯文本形式存储在我的index.php文件中?