Creating a MySQL data service#
This tutorial creates an Ametnes-managed MySQL database — a private data service you reach over an Ametnes network access endpoint.
Prerequisites#
- A service location (see Service Location).
Networking is automatic by default
Creating a network access resource is optional. If you do not create one, Ametnes manages network access for the location and the service attaches automatically. Create your own only if you want to control exposure (see Network Access Resources).
Create the MySQL service#
Select the kind (service/mysql:<version>), tier, storage and node count.
Ametnes offers MySQL 9.4 and 8.0.
- Navigate to the Services left menu and click New Service.
- Enter Name:
MysqlService. - Select Kind: MySql 9.4 Service.
- Select the Location: your data service location. Leave Network unset to let Ametnes manage it.
- Select the Setup Architecture (for example Basic for evaluation, or Large and above for production).
- Set the Admin Password for the
rootuser; a password is generated when omitted. - Click Create Service and wait for the status
ready.
Connect#
Use the connections returned by the service (or the console's connection
panel). MySQL listens on port 3306; the host is the service's DNS name on
your zone. The admin user is root; the application user is ametnes (with
database ametnes).
Next#
- Service Location — choose where the service runs.
- Network Access Resources — control how the service is exposed.