mysqlを実行すると、my.cnfのmysqld設定は適用されません。

mysqlを実行すると、my.cnfのmysqld設定は適用されません。

mysql[mysqld]my.cnfin以下の設定を無視し、and以下の設定を選択します。[client][mysql]

どうすれば解決できますか?

試してみましたが、brew services mysql restart違いはありませんでした。

私の.cnf:

 λ cat /opt/homebrew/etc/my.cnf
# Default Homebrew MySQL server config
[client]
user = <user>
host = <hostname>
port = 3306

[mysql]
auto-rehash

[mysqld]
wait_timeout = 28800
interactive_timeout =  28800
net_read_timeout =  28800
connect_timeout =  28800
net_write_timeout =  28800

出力mysqld --verbose --help | grep -i 'timeout'

connect-timeout                                              28800000
delayed-insert-timeout                                       300
innodb-flush-log-at-timeout                                  1
innodb-lock-wait-timeout                                     50
innodb-rollback-on-timeout                                   FALSE
interactive-timeout                                          28800000
lock-wait-timeout                                            31536000
mysqlx-connect-timeout                                       28800000
mysqlx-idle-worker-thread-timeout                            3600
mysqlx-interactive-timeout                                   2147483
mysqlx-port-open-timeout                                     0
mysqlx-read-timeout                                          2147483
mysqlx-wait-timeout                                          2147483
mysqlx-write-timeout                                         2147483
net-read-timeout                                             28800000
net-write-timeout                                            28800000
port-open-timeout                                            0
replica-net-timeout                                          60
rpl-stop-replica-timeout                                     31536000
rpl-stop-slave-timeout                                       31536000
slave-net-timeout                                            60
ssl-session-cache-timeout                                    300
wait-timeout                                                 28800000

サーバーでは低いですが、なぜdatagripp接続が失われないのですか?この変数を変更したが、何の効果もなかった。

ベストアンサー1

ランニング:

mysqld --verbose --help

次の2行が表示されます。

Default options are read from the following files in the given order:
/opt/homebrew/etc/my.cnf ~/.my.cnf

リストされたファイルに上書きがないことを確認してください。

おすすめ記事