签到成功

知道了

CNDBA社区CNDBA社区

Mysql OCP 38题

2021-12-12 22:33 1988 0 原创 mysql
作者: hbhe0316

You have created a new user with this statement:
CREATE USER ‘erika’@’localhost’ IDENTIFIED BY ‘first#1Pass’ PASSWORD EXPIRE;
What is the outcome?
A. When ‘erika’@’localhost’ tries to log in with the MySQL command-line client, the user will have to change the password before seeing the mysql> prompt.
B. When ‘erika’@’localhost’ tries to log in with the MySQL command-line client, the user will not be permitted to log in because the password is expired.
C. When ‘erika’@’localhost’ tries to log in with the MySQL command-line client, the user will be permitted to log in but will not be able to issue ant statements until the user changes the password.
D. You receive a syntax error that indicates that you cannot set a password and expire it at the same time.
Answer: C

http://www.cndba.cn/hbhe0316/article/22777
http://www.cndba.cn/hbhe0316/article/22777http://www.cndba.cn/hbhe0316/article/22777
http://www.cndba.cn/hbhe0316/article/22777

你使用下面语句创建了一个新用户:
CREATE USER ‘erika’@’localhost’ IDENTIFIED BY ‘first#1Pass’ PASSWORD EXPIRE;
它会有怎样的影响?
A. 当‘erika’@’localhost’用户试图使用mysql命令行工具连接MySQL时,用户在进入”mysql>”提示符界面前,必须修改密码
B. 当‘erika’@’localhost’用户试图使用mysql命令行工具连接MySQL时,用户的登录请求将被拒绝,因为密码已经过期
C. 当‘erika’@’localhost’用户试图使用mysql命令行工具连接MySQL时,用户可以登录到”mysql>”提示符界面,但不允许执行其它语句,直到他修改了密码为止
D. 执行创建用户的语句时会报语法错误http://www.cndba.cn/hbhe0316/article/22777http://www.cndba.cn/hbhe0316/article/22777

http://www.cndba.cn/hbhe0316/article/22777
http://www.cndba.cn/hbhe0316/article/22777
http://www.cndba.cn/hbhe0316/article/22777http://www.cndba.cn/hbhe0316/article/22777

版权声明:本文为博主原创文章,未经博主允许不得转载。

MYSQL

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:2654412次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ