Install MySQL on your VPS
Infraa installs MySQL Server 8.0 on your VPS from Ubuntu's default apt repository — no vendor repo or signing key involved. You set the root password during install (stored encrypted, never in logs), and Ubuntu's stock config binds MySQL to localhost, so nothing is exposed to the network. Ubuntu 22.04 and 24.04 only: Debian's answer to MySQL is MariaDB, which Infraa also installs.
- Versions
- MySQL Server 8.0, from Ubuntu's default apt repository
- Works on
- Ubuntu 22.04 and Ubuntu 24.04
- Package source
- Ubuntu apt repository
What does the MySQL install do?
- Installs mysql-server from the stock Ubuntu apt repo — no third-party repository or signing key.
- Sets the root@localhost password you provide via a constrained capability — stored encrypted, never shown in logs or run history.
- Enables and starts the mysql systemd unit.
- Writes no configuration: Ubuntu's stock config binds 127.0.0.1:3306 (and the X protocol on 127.0.0.1:33060), the safe default.
How do I install MySQL with Infraa?
Connect your server
Run the Infraa install one-liner (curl install.infraa.sh | sh) on your VPS. The agent registers over an outbound connection in about 30 seconds — no inbound ports, no SSH keys to share.
Pick the service
Choose it from the one-click catalog in the dashboard, or just ask in chat. Infraa turns your request into a concrete, reviewable plan.
Review and approve
Read exactly what will run, then approve. The agent executes only the approved, cryptographically signed steps and streams progress live.
What happens after the install?
Infraa checks MySQL every 60 seconds — service status and port 3306 connectivity — and flags it in your dashboard when it degrades. Schema work, user management, and exposing MySQL to other hosts (with the firewall rule that has to go with it) all go through chat: proposed by the AI, approved by you.
MySQL on Infraa — common questions
01What if my server already runs MariaDB?
MySQL and MariaDB are mutually exclusive at the package level. If MariaDB is already installed, the MySQL install skips rather than letting apt remove it — keep using Infraa's MariaDB module on that server.
02How is the MySQL root password handled?
You set it during install; Infraa applies it through a constrained capability and stores it encrypted. Unlike MariaDB, MySQL 8 has no password-plus-socket mode — setting the password replaces the default auth_socket login. If you ever lose it, Ubuntu's maintenance credentials in /etc/mysql/debian.cnf (readable only by the OS root user) can still administer the server.
03Why isn't Debian 12 supported for MySQL?
Debian doesn't package MySQL at all — its supported answer is MariaDB. Rather than pull in Oracle's vendor repository just for Debian, Infraa offers the MariaDB module there, installed from Debian's own archive.
Connect a server in 30 seconds, then install MySQL from the catalog or just ask in chat.