zoukankan      html  css  js  c++  java
  • MySQL Warning: Using a password on the command line interface can be insecure.解决办法

     

    转自
    http://www.cnblogs.com/sunss/p/6256706.html 

    被一个小朋友问到,直接公布答案:

    If your MySQL client/server version is a 5.6.x a way to avoid the WARNING message are using the mysql_config_editor tools:

    mysql_config_editor set --login-path=local --host=localhost --user=username --password

    Then you can use in your shell script:

    mysql --login-path=local -e "statement"

    instead of:

    mysql -u username -p pass -e "statement"

    使用总结:

    mysql_config_editor print --all

    mysql_config_editor set --login-path=vip -h10.70.72.22 -uroot -p
    mysql_config_editor set --login-path=vip -h10.70.72.12 -uroot -p
    mysql_config_editor del --login-path=vip
    mysql_config_editor remove vip
    mysql_config_editor remove
    mysql_config_editor reset
    mysql_config_editor set --login-path=local -p
    mysql_config_editor set --login-path=vip -h10.70.72.12 -upisp -p
    mysql_config_editor set --login-path=vip -h10.70.72.12 -upisp -p

  • 相关阅读:
    Wireshark——工具
    Wireshark——网络协议
    Wireshark——过滤器
    Wireshark——数据包、着色规则和提示
    Floyd最小环
    有向环覆盖问题
    KM算法
    归并排序
    树状数组
    构造强连通图
  • 原文地址:https://www.cnblogs.com/paul8339/p/7266231.html
Copyright © 2011-2022 走看看