Skip to content

Instantly share code, notes, and snippets.

@edubarbieri
Created October 28, 2016 13:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edubarbieri/216683291d78cf89f7db8b2b33ebf13a to your computer and use it in GitHub Desktop.
Save edubarbieri/216683291d78cf89f7db8b2b33ebf13a to your computer and use it in GitHub Desktop.
Create new database and user Mysql
--Create Database
CREATE DATABASE wallet COLLATE 'utf8_general_ci';
CREATE USER 'wallet'@'localhost' IDENTIFIED BY 'senha';
GRANT ALL PRIVILEGES ON wallet.* TO 'wallet'@'localhost';
FLUSH PRIVILEGES;
SHOW GRANTS FOR 'wallet'@'localhost';
use wallet;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment