Skip to content

Instantly share code, notes, and snippets.

@HungYuHei
Forked from iwinux/setup.sql
Created September 20, 2011 04:35
Show Gist options
  • Save HungYuHei/1228337 to your computer and use it in GitHub Desktop.
Save HungYuHei/1228337 to your computer and use it in GitHub Desktop.
Set up a database in MySQL
CREATE DATABASE `databasename` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'user'@'localhost' IDENTIFIED BY 'mypass';
GRANT ALL ON databasename.* TO 'user'@'localhost';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment