SQL: March 2020 Archives

MySQL store login info

user-pic
Vote 0 Votes

mysql_config_editor 可以將 MySQL 登入資訊存入, 實際上是編碼後的資料存在 ~/.mylogin.cnf
可以避免密碼出現在 script 內

設定
mysql_config_editor set --login-path=dbname -u user -p -h host

使用
mysql --login-path=dbname

列出現有資訊
mysql_config_editor print --all

Recent Entries

About this Archive

This page is an archive of entries in the SQL category from March 2020.

SQL: January 2020 is the previous archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives