Skip to content

Instantly share code, notes, and snippets.

@trungpv1601
Created July 13, 2017 06:40
Show Gist options
  • Save trungpv1601/35aea2b2ace935eee501c0d0a9ff6639 to your computer and use it in GitHub Desktop.
Save trungpv1601/35aea2b2ace935eee501c0d0a9ff6639 to your computer and use it in GitHub Desktop.
Create user and database mysql
CREATE DATABASE xxxDatabase;
CREATE USER 'xxxUser'@'localhost' IDENTIFIED BY 'xxxPassword';
GRANT ALL PRIVILEGES ON xxxDatabase.* TO 'xxxUser'@'localhost';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment