Configure MySQL on TurboStack

Choose MySQL or MariaDB on a TurboStack host, select a matching version, and configure memory, client-only mode or the listening address.

Choose MySQL or MariaDB for your host, then select a version that your application supports. TurboStack sizes database memory automatically.

Where to configure it

The database engine is a host-level service shared by the applications on that host.

  1. Open the host's Services tab and select MySQL / MariaDB.
  2. Enable the service, then choose MySQL or MariaDB under Select Type.
  3. Choose a version. Changing the type clears the version, so select it again before saving.
The MySQL / MariaDB panel with Select Type, Client only and the version selector
The MySQL / MariaDB panel with Select Type, Client only and the version selector

Save the configuration, then Save & Publish to apply it to the server.

Choosing MariaDB

In Source (YAML), set both keys:

mysql_type: mariadb
mysql_version: "11.8"

MariaDB supports versions 11.8 and 12.3 on Debian hosts managed directly by TurboStack. The other documented mysql_* settings keep their meaning. Omit mysql_type to select MySQL.

YAML configuration

Required

Key Meaning
mysql_version The version of the selected engine: for example "8.4" or "9.7" for MySQL, or "11.8" or "12.3" for MariaDB.

Optional

Key Meaning
mysql_type Set to mariadb for MariaDB. Omit the key for MySQL.
mysql_innodb_size InnoDB buffer pool size. Auto-tuned to the server by default - override only with measured evidence.
mysql_bindaddress The address MySQL listens on, or ANY for every interface. Security-sensitive: keep it on localhost unless remote access is required.
mysql_timezone The database server's default time zone. Uses the server's own time zone when unset.
mysql_server Set to false to install client tools without a local MySQL server. Defaults to true.
mysql_server_only Makes this host a database server with no local application side. Off by default.
mysql_version: "8.4"

# Optional overrides
mysql_innodb_size: "2G"        # leave unset to keep auto-tuning
mysql_bindaddress: "127.0.0.1" # keep local unless remote access is needed
# mysql_timezone: "UTC"        # leave unset to follow the server's time zone

Listening address

mysql_bindaddress takes an address, or the keyword ANY, which makes MySQL listen on every interface the server has.

Time zone

mysql_timezone sets the database server's default time zone, which decides how NOW(), CURDATE() and TIMESTAMP columns are interpreted. Leave it out and MySQL follows the server's own time zone. Accepted values are what MySQL accepts: UTC, or an offset such as +02:00.

Database-server-only hosts

mysql_server_only: true turns the host into a dedicated database server: the database engine is installed, but not the local application-side setup. This is the other half of client-only mode - one host runs the database, one or more others run the applications.

MySQL Client only enabled with the remote database host name and address left empty
MySQL Client only enabled with the remote database host name and address left empty

Common tasks