Skip to content

Instantly share code, notes, and snippets.

@karrikas
Last active April 4, 2019 13:16
Show Gist options
  • Save karrikas/147c98bb329e46695565cfea3f78af54 to your computer and use it in GitHub Desktop.
Save karrikas/147c98bb329e46695565cfea3f78af54 to your computer and use it in GitHub Desktop.
Create new database and new user in mysql
CREATE DATABASE database;
CREATE USER user@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON database.* TO user@localhost;
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment