-
Notifications
You must be signed in to change notification settings - Fork 6
Run MariaDB
Vincent Emonet edited this page May 17, 2019
·
6 revisions
docker run --rm --name mariadb -v /data:/data -e MYSQL_ROOT_PASSWORD=pwd -d mariadb
docker exec -it mariadb mysql -uroot -ppwd
SHOW DATABASES;
CREATE DATABASE database_name;
USE database_name;
SHOW TABLES;
SELECT * FROM table_name LIMIT 10;
docker exec -i mariadb mysql -uroot -ppwd database_name < /data/load_data.sql
jdbc:mariadb://localhost:3306/DB?user=root&password=pwd