You have a login-path named “adamlocal” that was created by using the mysql_config_editor
command.
You need to check what is defined for this login_path to ensure that it is correct for you
deployment.
You execute this command:
$ mysql_config_editor print –login-path=adamlocal
What is the expected output of this command?
A.
The command prints all parameters for the login-path. The password is printed in plain text.
B.
The command prints all parameters for the login-path. The password is shown only when you
provide the –password option.
C.
The command prints all parameter for the login-path. The password is replaced with stars.
D.
The command prints the encrypted entry for the login-path. The is only possible to see if an
entry exists.
Explanation:
C
http://dev.mysql.com/doc/refman/5.6/en/mysql-config-editor.html
To see what mysql_config_editor wrote to the .mylogin.cnf file, use the print command:
shell> mysql_config_editor print –all
[local]
user = localuser
password = *****
host = localhost
[remote]
user = remoteuser
password = *****
host = remote.example.com
C
C
Output
mysql_config_editor print –login-path=adamlocal
[adamlocal]
user = adamlocal
password = *****
host = localhost
C is the right answer as I tested it
mysql_config_editor print –all
[client]
user = root
password = *****
host = localhost
socket = /u00/app/mysql/admin/mysqld3/socket/mysqld3.sock
port = 33003