Mysql8の「my.cnf」の場所を調べる

AlmaLinuxにインストールした「my.cnf」の場所を調べる手順です。
環境
- OS AlmaLinux 8.4
- mysql 8.0.21
「my.cnf」の場所を調べる
「mysql –help」コマンドをgrepすることで、確認できます。
mysql --help | grep my.cnf
<出力結果>
order of preference, my.cnf, $MYSQL_TCP_PORT,
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
ファイルは、読み込む順番は、左からとなります。
「mysql –help」でも確認することは可能です。
mysql --help
<出力結果>
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
-
前の記事
python numpyの配列の最小値を取得する 2021.06.22
-
次の記事
Rocky Linux FTPソフト「filezilla」をインストールする 2021.06.22
コメントを書く