So, you need a tool to work with your database via web interface.
Install PhpMyAdmin?
Maybe, but it's hard and insecure to do it each time: you can even break the whole server!
Install Adminer?
Maybe, it's easier then PhpMyAdmin, but you still need a couple of things to get it: go to the official website, save file to the web directory, etc. Also, if you use Git, i will need to delete adminer.php
before each commit or add it to .gitignore
. Isn't perfect solution.
Install FastAdminer!
FastAdminer is simple wrapper for Adminer, that downloads adminer.php
to your site root directory and then, when you don't need adminer, it deletes it with one key press. Just type single command in your terminal: fastadminer
.
🎶 Use case:
-
- Open terminal and
cd
to your site's root directory;
- Open terminal and
-
- Run
fastadminer
command: it will downloadadminer.php
to the working directory;
- Run
-
- Go to
http://[your-site]/adminer.php
and do what you want with Adminer;
- Go to
-
- Now, when you don't need adminer, just press Enter and
adminer.php
will be deleted.
- Now, when you don't need adminer, just press Enter and
Only Linux support implemented now. Open your terminal and type:
sudo wget -O /usr/bin/fastadminer https://raw.githubusercontent.com/Lisennk/FastAdminer/master/src/fastadminer
sudo chmod +x /usr/bin/fastadminer
cd /your/site/root/directory
fastadminer