You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
301 B
18 lines
301 B
5 years ago
|
# Enter the Container w/ Bash
|
||
|
|
||
|
`docker-compose exec --user root db /bin/bash`
|
||
|
|
||
|
# Enter the MySQL Shell
|
||
|
|
||
|
`docker-compose exec --user root db mysql -u root -p`
|
||
|
|
||
|
When prompted, enter `root` as the password.
|
||
|
|
||
|
# Create a DB
|
||
|
|
||
|
While inside the shell, run the following:
|
||
|
|
||
|
```
|
||
|
CREATE DATABASE mydatabase;
|
||
|
```
|