mysql_config_editor usage

Posted maxyang2008

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql_config_editor usage相关的知识,希望对你有一定的参考价值。

# mysql_config_eidtor is a tool to create a profile file $HOME/.mylogin.cnf, in which you can store login information (username, password, machine), so that you dont need to type password
# everytime you login mysql through command line
 
/usr/local/mysql/bin/mysql_config_editor set --login-path=test --user=root --password --host=localhost # this will prompt you for password
 
/usr/local/mysql/bin/mysql_config_editor print --all # print all content stored in $HOME/.mylogin.cnf
 
/usr/local/mysql/bin/mysql_config_editor remove --login-path=test # remove config from $HOME/.mylogin.cnf
 
# then you can use the following command line to login without having to enter password
/usr/local/mysql/bin/mysql --login-path=test

 

以上是关于mysql_config_editor usage的主要内容,如果未能解决你的问题,请参考以下文章

mysql_config_editor 安全登录方式

mysql_config_editor

mysql_config_editor设置

MySQL 通过mysql_config_editor更安全的登录数据库

登陆MySQL 5.6.32,不用每次输入密码 mysql_config_editor

Mysql 5.6 新特性(转载)