mysql ocp 1z0-888 每日一题(63)

Question: 61
You are no longer able to log in to an existing MySQL Server because the root password
credentials not working. You need to reset the root password to complete various administrative
tasks. What are the two major methods that will achieve this?
A. Start the MySQL Server in --safe-mode, which only loads the privilege system for changes as
data is inaccessible.
B. Start the MySQL Server with reset-root-password in my.cnf, which will prompt you to enter a
new root user password.
C. Start the MySQL Server with --init-file pointing to SQL that executes an ALTER USER
statement to change the root user password.
D. Start the MySQL Server with --skip-grant-tables and execute SQL, which will update the root
password.
E. Start the MySQL Server with –initialize-insecure to force a password reset procedure on the
command line.

解析 

A 无此参数

B 无此参数

C 也是一种变更密码的方法

D是正确的用法

E –initialize-insecure是初始化数据目录用的,和–initialize区别是新建的root用户没有密码,无法进行密码找回,如果有已经存在data目录就会报错

CD

猜你喜欢

转载自blog.csdn.net/AkiFreeman/article/details/85919461