Skip to content
  • View menu
  • View featured posts
  • View sidebar

Ajoshow

安迪豬的個人網誌

  • 首頁
  • Facebook
  • Linkedin
  • Twitter
  • Email

口袋筆記

客製化的Terminal .bashrc

8 9 月, 20208 9 月, 2020 by Andy

bash cd到當下目錄位置

19 5 月, 2020 by Andy

OpenJDK for Windows/Mac

10 4 月, 202011 4 月, 2020 by Andy

Vue Component v-model 筆記

25 5 月, 201926 5 月, 2019 by Andy

webpack 新手筆記

5 3 月, 20195 3 月, 2019 by Andy

前端常見的三種Module System

5 3 月, 20195 3 月, 2019 by Andy

vuex 新手筆記

4 3 月, 201913 3 月, 2019 by Andy

npm & vue cli 新手筆記

4 3 月, 201913 3 月, 2019 by Andy

VueJS 基礎語法練習

11 1 月, 201911 1 月, 2019 by Andy

常用Git指令

21 12 月, 201811 1 月, 2019 by Andy

分類

  • 口袋筆記 (30)
  • 心得分享 (4)
  • 未分類 (1)
  • 程式小品 (2)

近期文章

  • 客製化的Terminal .bashrc
  • bash cd到當下目錄位置
  • OpenJDK for Windows/Mac
  • Vue Component v-model 筆記
  • Bootstrap4 Set Global font-size筆記

標籤雲

transitive dependency testCompileOnly mssql XSS docker mysql testRuntime java8 ci httpOnly eclipse sql runtime scss compile javascript spring compileOnly automation dependency management gradle linux progressbar 1Z0-813 spring-boot cookie centos6 bootRun providedRuntime testCompile bash java shell codepen build tool providedCompile OWASP dependency configuration ocpjp classNotFoundException intellij css secure flag build.gradle multi-projects

友站連結

Paul’s Recipe Book

彙整

  • 2020 年 9 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2019 年 5 月
  • 2019 年 3 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 8 月
  • 2018 年 4 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 10 月
  • 2017 年 9 月
  • 2017 年 8 月
  • 2017 年 7 月

Tag / mysql_config_editor

11 10 月, 201811 10 月, 2018 by Andy

mysql_config_editor/login-path筆記

  • 口袋筆記
  • login-path, mysql, mysql_config_editor
  • Leave a comment

當mysql有設定帳密時,不論是每次的登入或是寫script時,都要輸入帳密其實是挺惱人的事,且有時也不好把帳密資訊寫在script裡。雖然每次輸入帳密會比較安全,但如果只是在自己電腦或是測試的時候,能少敲一個字都好。在MySQL5.6新出一個login-path的特性,可以把帳密加密保存於mylogin.cnf,之後客戶端可以透過讀取該加密文件連接MySQL。這樣一來可以避免敏感資料曝露,也在安全跟方便之間取個平衡。

設定login-path

>mysql_config_editor set --login-path={name} --host={host} --port={port} --user={user} --password

使用login-path

>mysql --login-path={name}

參考:

  • https://blog.csdn.net/zyz511919766/article/details/52814939
Powered © Andy Chu