MySql 账户管理
2016-01-28 11:54
579 查看
【MySql 账户管理】
You must connect to the MySQL server as the MySQL
Example 1: Create an account that uses the default authentication plugin and the given password. Mark the password expired so that the user must choose a new one at the first connection to the server:
Example 2: Create an account that uses the
Example: This statement creates two accounts, each with the default authentication plugin and named password. For both accounts, connections must be made using a valid X509 certificate and up to 60 queries per hour are permitted. Both accounts are locked initially, so effectively they are placeholders and cannot be used until an administrator unlocks them:
grant 语句示例:
删除用户:
设置密码:
参考:http://dev.mysql.com/doc/refman/5.7/en/account-management-sql.html
You must connect to the MySQL server as the MySQL
rootuser, which has the
CREATE USERprivilege.
CREATE USERcreates a new row in the
mysql.usertable.
Example 1: Create an account that uses the default authentication plugin and the given password. Mark the password expired so that the user must choose a new one at the first connection to the server:
Example 2: Create an account that uses the
sha256_passwordauthentication plugin and the given password. Require that a new password be chosen every 180 days:
Example: This statement creates two accounts, each with the default authentication plugin and named password. For both accounts, connections must be made using a valid X509 certificate and up to 60 queries per hour are permitted. Both accounts are locked initially, so effectively they are placeholders and cannot be used until an administrator unlocks them:
grant 语句示例:
删除用户:
设置密码:
参考:http://dev.mysql.com/doc/refman/5.7/en/account-management-sql.html
相关文章推荐
- mysql聚集索引的优缺点
- [转]向facebook学习,通过协程实现mysql查询的异步化
- mysql 命令行执行sql语句
- unix下mysql丢失或者遗忘密码怎么办
- SqlServer实时数据同步到MySql
- MySQL 插入时间
- mysql : Lock wait timeout exceeded; try restarting transaction
- mysql 的 几种 timeout(更新中......)
- SqlServer实时数据同步到mysql
- 破解mysql root密码的几种方法
- mysqldump
- MySQL日期时间函数大全
- pdo_mysql安装
- MySQL开发规范与使用技巧总结
- mysql 添加索引 mysql 如何创建索引
- MySQL执行状态分析
- navicat for mysql 10.1.7注册码
- mysql中的null字段值的处理及大小写问题
- 深入mysql "ON DUPLICATE KEY UPDATE" 语法的分析
- mysql 5.7.10安装配置