MySQL
Hostim.dev offers managed MySQL databases that you can add to any project. These databases are ready to use, secure by default, and require no manual setup.
Free tier
You can start with a free MySQL plan that provides limited storage and CPU. It's perfect for testing or small personal projects.
Shared vs dedicated MySQL
You can choose between two options:
- Shared MySQL: Fast and affordable. Multiple users share the same server, but each database is isolated.
- Dedicated MySQL: Your own isolated MySQL server. Better for performance, reliability, and security.
Choose shared for testing, staging, or small apps. Choose dedicated for production.
How to add a MySQL database
- Open your project in the dashboard
- Click Create Service -> New MySQL
- Give your database a name
- Choose a plan (shared or dedicated and size)
- Click Create MySQL
Hostim will provision the database and provide connection details.
Connection details
After creation, you'll see:
- Hostname
- Port
- Database
- Username and password
You can connect from any app in the same project using internal networking. Just use the credentials from the dashboard. External access is possible via Bastion SSH container.
Each database also provides a set of environment variables automatically based on the
name you choose. If you create a database called blog, the variables
BLOG_MYSQL_HOST, BLOG_MYSQL_PORT,
BLOG_MYSQL_DATABASE, BLOG_MYSQL_USER and
BLOG_MYSQL_PASSWORD are available to any app in the project. You can
reference them in your app configuration using the $(VAR_NAME) syntax.
Managing MySQL
You can:
- Scale database plan up or down
- Remove the database when no longer needed
Accessing MySQL via SSH
You can also connect to your database using the Bastion container. This is useful for importing or exporting data using tools like mysqldump.
More advanced features like metrics, slow query logs, automatic backups, external access and read replicas may be added in future versions.