Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/domexx/adminer


https://github.com/domexx/adminer

Last synced: about 9 hours ago
JSON representation

Awesome Lists containing this project

README

        

# MariaDB - Railway Template

This example deploys a self-hosted version of [MariaDB](https://mariadb.com/). MariaDB is a community-developed, commercially supported fork of the MySQL relational database management system (RDBMS), intended to remain free and open-source software under the GNU General Public License.

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/BrjaHe?referralCode=HT4TtK)

## What is MariaDB?
MariaDB Server is one of the most popular database servers in the world. It's made by the original developers of MySQL and guaranteed to stay open source. Notable users include Wikipedia, DBS Bank, and ServiceNow.

The intent is also to maintain high compatibility with MySQL, ensuring a library binary equivalency and exact matching with MySQL APIs and commands. MariaDB developers continue to develop new features and improve performance to better serve its users.

## ✨ Services
- MariaDB
- Adminer (Web GUI for Database management)

## 💁‍♀️ How to use

- Click the Railway button 👆
- Add the required environment variables. For more environment variables check the [official docs](https://mariadb.com/kb/en/mariadb-server-docker-official-image-environment-variables/)
- `init_db.sql` & `create_user.sql` are custom scripts that will be executed on startup. You can customize them as per your needs.
- Deploy
- To access the Adminer GUI, use the railway public url. For example: `https://.up.railway.app/`
![login](img/login.png)
- You can login into adminier with Server as `database` and username & password which you configured during service configuration or you can find under environmental variable for database service in Railway UI.
- You can utilize the railway internal network to connect to the database from other services. For example `database.railway.internal` should be your database host.
- You can view list of databases and tables in the Adminer GUI
![adminer](img/database.png)
- To view tables within a database, click on the database name
![tables](img/adminer.png)
- Adminer also provides option to view table column infomration
![columns](img/viewtable.png)
- You can edit and modify table structure using Adminer
![edit](img/updatetable.png)
- Table can be created from UI as well
![create](img/createtable.png)
- It also provider option to execute custom sql queries. By clicking on `SQL Command` you should be able to write your own sql and query the table you want.
![custom](img/customquery.png)
- To include your application make sure to create a separate folder and add new service. Use internal network to connect to db.
- Enjoy!

## 📝 Notes

- Source repo: https://github.com/MariaDB/mariadb-docker
- Docs: https://mariadb.com/kb/en/
- Adminer: https://www.adminer.org/