docker run --name some-mysql -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 -d mysql
mysql -u root -p
Enter Password: ******
MariaDB .. > create database ninjadb;
MariaDB .. > create user 'ninja'@'localhost' identified by 'ninjapass';
MariaDB .. > grant all privileges on ninjadb.* to 'ninja'@'localhost';
MariaDB .. > flush privileges;
MariaDB .. > exit
mysqldump -h localhost -u username -p db_name > db_backup.sql
SHOW DATABASES;
ALTER USER 'userName'@'localhost' IDENTIFIED BY 'New-Password-Here';