Skip to content

Instantly share code, notes, and snippets.

@bouassaba
Last active March 25, 2021 11:36
Show Gist options
  • Save bouassaba/8abf9d0fd488eaf5ae92dd9cde94e5c8 to your computer and use it in GitHub Desktop.
Save bouassaba/8abf9d0fd488eaf5ae92dd9cde94e5c8 to your computer and use it in GitHub Desktop.
MySQL create user and database
CREATE DATABASE mydatabase;
CREATE USER myuser IDENTIFIED BY 'mypassword';
GRANT ALL privileges ON mydatabase.* TO myuser;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment