Skip to content

Instantly share code, notes, and snippets.

@fjourdren
Created June 27, 2021 21:38
Show Gist options
  • Save fjourdren/f3df3849034c1d205fd03dd6d37747a6 to your computer and use it in GitHub Desktop.
Save fjourdren/f3df3849034c1d205fd03dd6d37747a6 to your computer and use it in GitHub Desktop.
docker run --name=mk-mysql -p3306:3306 -e MYSQL_ROOT_PASSWORD=secret-pw -d mysql:latest
docker exec -it mk-mysql bash
mysql -u root -p
secret-pw
CREATE DATABASE MYSQLTEST;
ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'secret-pw';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment