.Tang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

查看用户及连接:

localhost 为本地连接

% 可远程连接

 

select user,host from mysql.user;

*1 创建用户
```
create user 'username'@'%' identified by 'password';
```
*2 赋权
```
grant all on *.* to 'username'@'%';
```
*3 刷新
```
flush privileges;

posted on 2018-03-13 12:09  .Tang  阅读(133)  评论(0编辑  收藏  举报