mysql config 作用_MySQL的mysql_config_editor总结

mysql_config_editor介绍

mysql_config_editor是MySQL自带的一款用于安全加密登录的工具,可以在一些场合避免使用密码明文,例如,写shell脚本时,不用在为在脚本里面写入明文密码纠结了;也可以用于管理多台MySQL实例。另外,像如果使用mysql命令登录数据库,可以避免每次都要输入一堆参数。简单方便。

官方文档介绍如下:

The mysql_config_editor utility enables you to store authentication credentials in an obfuscated login path file named .mylogin.cnf. The file location is the %APPDATA%MySQL directory on Windows and the current user's home directory on non-Windows systems. The file can be read later by MySQL client programs to obtain authentication credentials for connecting to MySQL Server.

mysql_config_editor使用

帮助信息查看

# mysql_config_editor --helpmysql_config_editor Ver 1.0 Distrib 5.7.30, for Linux on x86_64Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be t

你可能感兴趣的:(mysql,config,作用)