码迷,mamicode.com
首页 > 数据库 > 详细

mysql_config_editor usage

时间:2018-05-20 14:12:10      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:tor   class   can   print   style   roo   bsp   mylog   inf   

# 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

标签:tor   class   can   print   style   roo   bsp   mylog   inf   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!