We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa695d commit 28c0216Copy full SHA for 28c0216
mariadb/README.md
@@ -0,0 +1,17 @@
1
+# Enter the Container w/ Bash
2
+
3
+`docker-compose exec --user root db /bin/bash`
4
5
+# Enter the MySQL Shell
6
7
+`docker-compose exec --user root db mysql -u root -p`
8
9
+When prompted, enter `password` as the password.
10
11
+# Create a DB
12
13
+While inside the shell, run the following:
14
15
+```
16
+CREATE DATABASE mydatabase;
17
mariadb/docker-compose.yml
@@ -0,0 +1,15 @@
+version: '3'
+services:
+ db:
+ image: mariadb:latest
+ volumes:
+ - dbdata:/var/lib/mysql
+ restart: always
+ ports:
+ - 3306:3306
+ environment:
+ MYSQL_ROOT_PASSWORD: password
+volumes:
+ dbdata:
0 commit comments