Choose the best answer.

You wish to store the username and password for a client connection to MySQL server in a file on a local file system.

您希望将MySQL服务器的用户名和密码存储在本地文件系统的文件中。

Which is the best way to encrypt the file?

加密文件的最佳方式是什么?

A) Use mysql_secure_installation to encrypt stored login credentials.

B) Use a text editor to create a new defaults file and encrypt it from Linux prompt.

C) Use mysql_config_editor to create an encrypted file.

使用mysql_config_editor来创建一个加密的文件。

D) Use the AES_ENCRYPT() MySQL function on the option file.

Answer:C