layout | title | category |
---|---|---|
post |
MySQL |
Databases |
This document contains information related to projects based on the Ubuntu 14.04 image. If you are using the Ubuntu 18.04 image for your projects, please refer to this page.
If you are using the Ubuntu 14.04 image and you want to switch to Ubuntu 18.04, be sure to check our upgrade guide.
Credentials for using MySQL are available in environment variables listed below:
Name | Value |
---|---|
DATABASE_MYSQL_USERNAME | root |
DATABASE_MYSQL_PASSWORD | semaphoredb |
If you need to create a MySQL database manually, you can use the following command:
mysql -u $DATABASE_MYSQL_USERNAME -p$DATABASE_MYSQL_PASSWORD -e "CREATE DATABASE IF NOT EXISTS test_db;"
List of all packages and versions is available on the supported application stack page.