Skip to main content

Mysql

MySQL is a relational database management system (RDBMS) developed by Oracle that is based on structured query language (SQL).
Below you can find a basic example to deploy a mysql server using their official docker image:


Copy past the previous content and save it under a file called mysql.yml.
Then execute the following command to startup a mysql server:

nanocl state apply -s mysql.yml -- --password my_root_password --volume /opt/mysql
tip

Other cargo created in the same namespace global will be able to connect to the mysql using is key mysql.global.c The key can be predicted and caculated, it's formated this way: cargo_name.namespace_name.c|v c for container or v for virtual machine. This allow us to have the same name for virtual machine and containers.