加入收藏 | 设为首页 | 会员中心 | 我要投稿 PHP编程网 - 黄冈站长网 (http://www.0713zz.com/)- 数据应用、建站、人体识别、智能机器人、语音技术!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

mysql_config_editor用法示例

发布时间:2022-04-07 18:29:02 所属栏目:MySql教程 来源:互联网
导读:mysql_config_editor是一种存储mysql登录信息的工具。 通过mysql_config_editor设置了登录信息后,在用mysql命令登录数据库时就可以只用加一个--login-path=name的参数, 举例如下: 正常登陆为: # mysql -uroot -p123456 --socket=/tmp/mysql.sock 配置con
        mysql_config_editor是一种存储mysql登录信息的工具。
 
      通过mysql_config_editor设置了登录信息后,在用mysql命令登录数据库时就可以只用加一个--login-path=name的参数,
  
举例如下:
 
     正常登陆为:
 
     # mysql -uroot -p'123456' --socket=/tmp/mysql.sock
  
     配置config_editor:
 
#mysql_config_editor set --login-path=9527 --socket=/tmp/mysql.sock --user=root --password
 
Enter password:      --此时输入123456
  
Oracle is a registered trademark of Oracle Corporation and/or its
 
affiliates. Other names may be trademarks of their respective
 
owners.
  
Connection id:          66820
 
Current database:
 
Current user:           root@localhost
 
SSL:                    Not in use
 
Current pager:          stdout
 
Using outfile:          ''
 
Using delimiter:        ;
 
Server version:         8.0.13 MySQL Community Server - GPL
 
Protocol version:       10
 
Connection:             Localhost via UNIX socket
  
Threads: 2  Questions: 266  Slow queries: 0  Opens: 380  Flush tables: 2  Open tables: 352  Queries per second avg: 0.003

(编辑:PHP编程网 - 黄冈站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读