RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
MYSQL5.6是怎样锁定用户的-创新互联

在桃山等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都做网站、成都网站制作 网站设计制作定制网站制作,公司网站建设,企业网站建设,高端网站设计,成都营销网站建设,外贸营销网站建设,桃山网站建设费用合理。

这篇文章给大家介绍MYSQL 5.6是怎样锁定用户的,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

5.7加入了LOCK ACCOUNT功能和ORACLE一样了,
但是5.6貌似没有,但是可以代替用如下方法设置密码过期。
The mysql.usertable now has a password_expiredcolumn. Its default value is 'N', but
can be set to 'Y'with the new ALTER USER statement. After an account's password has been
expired, all operations performed in subsequent connections to the server using the account result
in an error until the user issues a SET PASSWORDstatement to establish a new account password.
For more information, see Section 13.7.1.1, “ALTER USERSyntax”, and Section 6.3.6, “Password
Expiration and Sandbox Mode”.
就是下面这个语法
mysql> alter user mytest1@'%' password expire;
如果要恢复
set password for mytest1@'%' = '*******';

其实就是MYSQL.USER下面的字段 password_expired 标示了是否过期。

关于MYSQL 5.6是怎样锁定用户的就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。


文章标题:MYSQL5.6是怎样锁定用户的-创新互联
标题路径:http://sczitong.cn/article/jdjhs.html