Corallium Studios
DatabaseFree template

MySQL Server

This free NautilusControl template sets up a MySQL server on port 3306 with 1 GB of RAM recommended. This page covers the ports to open, hardware requirements, the Docker image, every setting you can change and step-by-step setup.

  • Version v1.0.0
  • Updated
  • 0 downloads
  • By Corallium Studios

MySQL at a glance

Category
Database (database)
Docker image
mysql:8.0
Default version
8.0
Ports
3306/TCP
RAM
1 GB
CPU
1 core
Disk
20 GB
Console
Interactive console (stdin)
Template version
v1.0.0

MySQL server ports

A MySQL server built from this template listens on this port. Open it in your firewall so players and clients can connect.

PortProtocolUsed for
3306TCPMySQL
Ubuntu firewall (ufw)
sudo ufw allow 3306/tcp

MySQL server requirements

1 GBRAM
1 coreCPU
20 GBDisk

These are the template's recommended starting values. Increase it as your data and number of connections grow.

Run MySQL in Docker

The template uses the mysql:8.0 image, default version 8.0. NautilusControl pulls it automatically; to fetch it yourself:

Pull the image
docker pull mysql:8.0
Start command
docker-entrypoint.sh mysqld

MySQL settings (environment variables)

You can change these when you create the server or later in its settings.

VariableDefaultWhat it does
MYSQL_ROOT_PASSWORDrequiredemptyRoot password — required
MYSQL_DATABASEmydbDatabase to create on startup
MYSQL_USERemptyAdditional user to create
MYSQL_PASSWORDemptyPassword for the additional user

Files and folders

  • /var/lib/mysql — Data
  • /etc/mysql/conf.d — Config

How to set up a MySQL server with NautilusControl

  1. Install NautilusControl

    Install the NautilusControl panel and agent on the machine that will run the server. The installation guide covers it, and the 14-day free trial includes 1 node and 5 servers.

  2. Import the MySQL template

    Download this template (a single JSON file) with the button above, then open Templates in NautilusControl and choose Import JSON.

  3. Create the server

    Create a new container and pick MySQL. NautilusControl pulls mysql:8.0, fills in the environment variables listed below, and creates the folders for you.

  4. Open the ports

    Allow port 3306 through your firewall, and forward it on your router if people connect from outside your network.

  5. Start it

    Press Start and follow the startup log in the panel, then use the interactive console (stdin) for commands.

Server files come from www.mysql.com.

Notes

Most popular relational database. Used by WordPress, Laravel, and most PHP applications. Connect with mysql://user:pass@host:3306/dbname

MySQL FAQ

What ports does a MySQL server use?

This template uses port 3306 (MySQL). Open it in your firewall and forward it on your router if players connect from outside your network.

How much RAM does a MySQL server need?

The template recommends 1 GB of RAM, 1 core, 20 GB of disk space. Increase it as your data and number of connections grow.

Can I run MySQL in Docker?

Yes. The template uses the Docker image mysql:8.0 (default version 8.0). NautilusControl pulls it and creates the container for you.

Is the MySQL template free?

Yes. Every template in the Corallium Studios library is free to download. You need NautilusControl to deploy it; there is a 14-day free trial.