Skip to content

Commit

Permalink
update mysql安装
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 4, 2016
1 parent bd470a3 commit ff4e2df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MySQL/mysql安装.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ net start mysql
mysql -u用户名 -p用户密码
```

# 新建用户

```sql
-- 新建book用户,密码为book,允许book可以远程访问abc数据库,授权book对abc进行所有数据库
GRANT ALL ON abc.* to book@'%' IDENTIFIED BY 'book';
-- 允许book可以本地访问abc数据库,授权book对abc进行所有数据库操作
GRANT ALL ON abc.* to book@localhost IDENTIFIED BY 'book';
```

# 操作数据库

Expand Down

0 comments on commit ff4e2df

Please sign in to comment.