首页 > 数据库技术 > 详细

mysql_config_editor usage

时间:2018-05-20 13:26:48      阅读:214      评论:0      收藏:0      [点我收藏+]
# 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

原文:https://www.cnblogs.com/maxyang2008/p/9063143.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!