Marketplace
Databases

MySQL

Standalone MySQL Server 8, tuned for remote access.

Deploy this app

About

Installs MySQL Server and configures it to listen on all interfaces so it can be reached from other instances on your private network. A root password is generated automatically.

Restrict the firewall's source CIDR to your own private subnet — do not expose 3306 to 0.0.0.0/0. Root password is in /root/mysql-credentials.txt.

Ports opened by the installer

3306/tcp · MySQL

Install script (runs as cloud-init user-data on first boot)

#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get install -y mysql-server
DB_PASS=$(openssl rand -base64 18 | tr -dc 'A-Za-z0-9')
mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '$DB_PASS'; FLUSH PRIVILEGES;"
sed -i "s/^bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf
systemctl restart mysql
echo "MySQL root password: $DB_PASS" > /root/mysql-credentials.txt