Skip to content

Instantly share code, notes, and snippets.

@genedna
Created May 8, 2014 09:34
Show Gist options
  • Save genedna/49b6c5dc56fae7a03ede to your computer and use it in GitHub Desktop.
Save genedna/49b6c5dc56fae7a03ede to your computer and use it in GitHub Desktop.
MySQL 日常操作的一些 SQL 语句
INSERT INTO mysql.user(Host,User,Password) VALUES ('localhost', 'arkors', password('arkors'));
FLUSH PRIVILEGES;
CREATE DATABASE `arkors_test` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON arkors_test.* TO arkors@localhost IDENTIFIED BY 'arkors';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment