Skip to content

Instantly share code, notes, and snippets.

@MKRNaqeebi
Last active September 20, 2019 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MKRNaqeebi/9661387a6ca7f045b48f092e87c62a08 to your computer and use it in GitHub Desktop.
Save MKRNaqeebi/9661387a6ca7f045b48f092e87c62a08 to your computer and use it in GitHub Desktop.
sudo docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD='Kamran!12754' -d mysql/mysql-server:8.0.15 --default-authentication-plugin=mysql_native_password
sudo docker exec -it mysql bash
mysql -u root --password
CREATE USER 'mkrnaqeebi'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'mkrnaqeebi'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
CREATE DATABASE development;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment