MySQL
MySQL is a relational database for applications using this engine. Select a branch compatible with your project from the current service catalog.
Available versions
8.0, 8.4 and 9.7. The catalog provides separate branches; 8.4 and 9.7 use the matching MySQL repository. Package availability is checked during installation preparation. The exact patch version depends on the repository.
These options come from the application installation catalog. A catalog entry alone does not guarantee package availability on every server; verify the exact installed version in the service inventory.
Prepare
- Choose MySQL in services or an application profile with MySQL.
- Check existing MySQL or MariaDB before installing another branch. Installation does not automatically migrate data.
- Confirm any required database repository option and follow installation output.
- Verify the service and prepare the database and application user.
Ubuntu 24.04 provides MySQL 8.0 by default. For MySQL 8.4 or 9.7, enable the official database repository during installation unless the matching source is already configured on the server. Without this permission, the cloud does not add sources.
Installation selects an available version in the requested branch even when APT prefers another branch. It checks the complete package set and dependency plan before installation. Plans requiring package removal or downgrades are rejected. Existing databases and data require a separate migration.
Connect an application
The catalog uses port 3306; verify the actual port and listening address on the server. Your application needs host, database, user and password according to its configuration.
Store values through the project environment as appropriate. Saved values do not create a database or an .env file. Test connectivity as the application user.
Configuration and data
The supported server configuration is /etc/mysql/mysql.conf.d/mysqld.cnf. Access changes or restarts may interrupt applications. Keep a verified backup and data export before changing branches or uninstalling.
Distinguish unavailable service, authentication failure and missing database. Also check the firewall for network access.