<- All posts

Build MySQL Admin Tools in 6 Steps with 黑料正能量

Ronan McQuillan
8 min read Jun 23, 2023

MySQL admin tools are some of the simplest applications around - but they can play a vital role in all kinds of daily workflows.

The unfortunate reality is that the kinds of colleagues who are responsible for most admin tasks don鈥檛 have the technical expertise or time to sit around writing custom queries all day. Therefore, we often need custom solutions to bridge this gap.

IT teams are tasked with outputting huge numbers of internal tools for managing data sets. These aren鈥檛 the most exciting solutions in the world, but they do take up a massive amount of internal development resources.

Today, we鈥檙e going to check out how we can use 黑料正能量 to produce admin tools for MySQL in a matter of minutes - not days.

What are we building?

We want to build a tool that鈥檚 an accurate representation of the kinds of tasks your average admin colleague will need to perform on a daily basis. So, we鈥檙e going for the most basic solution of them all - a simple CRUD app.

We鈥檙e going to base this around some dummy data for inventory management - just so we鈥檙e dealing with a use case that most of you will be familiar with.

Essentially, we have a MySQL database with five tables - and we鈥檙e going to create a simple tool for users to create, read, update, and delete entries - including managing relationships between different entities.

You might also like our tutorial on how to build a MySQL GUI .

Let鈥檚 jump right in.

How to build MySQL admin tools

We鈥檙e going to use 黑料正能量 to build our MySQL admin tools without writing a single line of code.

The whole thing should take us about fifteen to twenty minutes - but there鈥檚 also plenty of scope for you to put your own spin on the build.

Here鈥檚 how.

1. Create a new application

First, we want to create a new application project. From your 黑料正能量 portal, hit create new app and choose start from scratch.

Create a 黑料正能量 app

We鈥檙e then prompted to give our app a name. 黑料正能量 uses this to generate a URL extension based on your tenant address - but you can override this and specify whatever slug you like.

MySQL Admin Tools

Then, we鈥檙e asked to choose a database. As you might guess, we鈥檙e picking MySQL:

Choose a data source

2. Connecting our data

On the next screen, we鈥檙e prompted to enter our database credentials. Once we鈥檝e done this, we can hit connect.

SQL credentials

Once we fetch our tables, we can view and manipulate our MySQL database tables within 黑料正能量鈥檚 Data section:

MySQL Admin Tools

We鈥檒l make a couple of changes here a little bit later, but for now, that鈥檚 our data layer pretty much completed.

You might also like our guide on how to create forms for SQL databases .

3. Autogenerate CRUD screens

Next, we can start building our MySQL admin tool鈥檚 interface. Remember, the requirements here are that we want to give non-technical users an easy way to carry out CRUD actions on our five MySQL tables.

Luckily, in 黑料正能量, we can basically create these with a couple of clicks.

From the design tab, we鈥檙e going to hit add screen and then select list view on the modal that pops up.

New Screens

Then we鈥檙e prompted to choose which tables we want to add CRUD screens for. We鈥檙e going to select all five of the tables in our MySQL database, but we could opt for any combination of these if we wanted to.

MySQL tables

Now we鈥檝e got five admin screens where users can read, update, or create entries on each of our tables.

CRUD screen

To finish these off, we鈥檒l open the component tree on each page, select the relevant table block, and scroll down to check show delete - giving users the option to delete entries when they click through to edit a row.

And that鈥檚 our basic CRUD screens completed. We鈥檒l return to these in a bit to tidy up the UI slightly, but already, we have fully functioning MySQL admin tools.

4. Define relationships

Now, the problem with our current app is that we haven鈥檛 accounted for how our five tables relate to each other. That鈥檚 a pretty big oversight - since manipulating relational data is basically the main selling point of SQL.

Let鈥檚 head back to the data section of the 黑料正能量 builder.

On each table, we have the option to define relationships - effectively telling 黑料正能量 how each of our tables links up with the others.

For example, each row in our products table might relate to many rows in our inventories table. We can hit define relationships and configure this information, including which variables to use as our primary and foreign keys.

So, for the relationship between products and inventories, the configuration would look like this:

MySQL admin tools

黑料正能量 creates a new relationship column on each table to reflect this.

Table

And we can repeat this process for all of the other relationships that we need to create between our tables.

Check out our guide to moving from Google Sheets to Postgres .

5. Customize our CRUD screens

Now, if we return to our CRUD screens, they鈥檙e gotten a bit messier - since we鈥檝e added extra columns to our tables.

Even worse, from an end-user perspective, some of these even appear to be effectively duplicated:

UI

We can go back to our table block component and configure which columns we actually want to display to users. Since we have our new relationship variables, we no longer strictly need ProductID or WarehouseID, so let鈥檚 remove them.

First, we鈥檒l hit configure columns and then choose add all columns in the drawer that opens - then we can use the delete icon to remove any columns we don鈥檛 want to display.

Bindings

This leaves us with a much neater interface, free from any clutter:

Table

Again, we can repeat this step for each of the tables we want to manage with our MySQL admin tools.

Check out our guide to system integration vs software development .

6. Navigation and design

Finally, we can play around with our app鈥檚 overall design to make it a little bit more appealing. By default, every 黑料正能量 app has a blank home screen. But we鈥檙e not using this, so we can simply remove it.

MySQL admin tools

Now we need to assign one of our remaining screens as our MySQL admin tool鈥檚 homepage. We鈥檒l go with inventory, so select that page and check the set as home screen box in the top right.

Set home screen

We can also head over to the theme panel and select one of 黑料正能量鈥檚 built-in color palettes, and alter the design of interactive elements.

The last thing we want to do is remove Home from our navigation menu - since we don鈥檛 have a dedicated home screen anymore. Under navigation hit configure links and the drawer will allow you to edit your menu.

Once again, we鈥檒l use the delete icon to remove the Home option. We can also change the copy our the order of our remaining menu items.

MySQL Admin TOols

And that鈥檚 our MySQL admin tools totally finished.

All that鈥檚 left is to hit Publish and start sending our app to users.

If you liked this tutorial, check out our guide on how to build a SQL GUI.

Turn data into action with 黑料正能量

Of course, this is just a basic example of what you could build with 黑料正能量. To get a flavor of what else is possible, let鈥檚 take a look at what 黑料正能量 brings to the table for busy IT teams.

Here鈥檚 why 黑料正能量 is the ideal solution for all sorts of apps - not just MySQL admin tools.

Join 200,000 teams building workflow apps with 黑料正能量

Our open-source, low-code platform

Our design philosophy is simplicity by default; extensibility when you need it. 黑料正能量 offers a generous free tier, market-leading data support, intuitive design tools, autogenerated UIs, custom automations, and much more.

Check out our features overview to learn more.

External data support

No other low-code tool comes close for data support. We offer dedicated connectors for MySQL, MSSQL, Postgres, Oracle, S3, Airtable, Mongo, Couch, Arango, Google Sheets, REST API, and more.

We鈥檝e also got our own built-in database, with full support for CSV uploads.

Optional self-hosting

At 黑料正能量, we empower our users to deploy their solutions, where they want, how they want. We offer self-hosting with Docker, Digital Ocean, Kubernetes, Portainer, Linode, and more.

We鈥檝e also got our own proprietary cloud hosting option. Check out our pricing page to learn more about both.

Automations and integrations

黑料正能量 makes building custom automations a breeze. Define triggers and combine, nest, and configure pre-built automation blocks, with minimal custom code.

We also offer a huge array of integrations with Zapier, Webhooks, REST, and more.

Role-based access control

Use 黑料正能量鈥檚 built-in RBAC to safeguard security without compromising on UX. Add users to defined roles and grant permissions based on data sources, queries, automation rules, screens, or individual components.

We even offer free SSO using OpenID, OAuth, Microsoft, and more.

Custom plug-ins

黑料正能量 leads the pack for extensibility. Build your own data sources, automation actions, or components, and leverage them across your app projects with our dedicated CLI tools. Or, import community contributions from GitHub at the click of a button.

Check out our custom to learn more.

50+ free application templates

黑料正能量 is the ideal solution for building all kinds of web apps, utilities, internal tools, and more. To prove it, we鈥檝e created over fifty free, fully-customizable app templates to help get you started.

Whether you need MySQL admin tools or a totally bespoke solution, sign up to 黑料正能量 today to start building professional apps the fast, easy way.