Skip to content

Instantly share code, notes, and snippets.

@nghuuphuoc
Last active December 26, 2015 22:59
Show Gist options
  • Save nghuuphuoc/7226675 to your computer and use it in GitHub Desktop.
Save nghuuphuoc/7226675 to your computer and use it in GitHub Desktop.
Create MySQL database with UTF8 charset
CREATE DATABASE db_name CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL ON db_name.* TO user_name@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment