(3) 在 (2) 基本上,设置暗码为 “123”
- show grants for user@host;
- MySQL [mysql]> grant all privileges on *.* to zj@localhost identified by '123' with grant option;
- Query OK, 0 rows affected, 2 warnings (0.01 sec)
- MySQL [mysql]> select * from user where user="zj" and host="localhost" \G ;
- *************************** 1. row ***************************
- Host: localhost
- User: zj
- Select_priv: Y
- Insert_priv: Y
- Update_priv: Y
- Delete_priv: Y
- Create_priv: Y
- Drop_priv: Y
- Reload_priv: Y
推荐阅读
2017年架构师最重要的48个小时 | 8折倒计时 自负年夜2015年我国大年夜力开展“宽带中国”专项行动后>>>详细阅读
本文标题:带您深入了解MySQL的权限管理
地址:http://www.17bianji.com/lsqh/38307.html
1/2 1