Skip to content

Instantly share code, notes, and snippets.

@innbitcodes
Last active October 12, 2017 21:20
Show Gist options
  • Save innbitcodes/4012269 to your computer and use it in GitHub Desktop.
Save innbitcodes/4012269 to your computer and use it in GitHub Desktop.
MySQL: Create Database in UTF8
CREATE DATABASE dbname DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON dbname.* TO 'dbuser' IDENTIFIED BY 'dbpassword';
flush privileges;
@aradnom
Copy link

aradnom commented Oct 12, 2017

Thanks. Totally had a "but what was the bit to set the encoding" brain fart moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment