Skip to content

Instantly share code, notes, and snippets.

@MKRNaqeebi
Last active Sep 20, 2019
Embed
What would you like to do?
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