2G Ram Linux CentosのVPSでmysqlを微調整しようとしていますが、mysqltuner.plを使用しました。レポートには次のように記載されています。
General recommendations:
Add skip-innodb to MySQL configuration to disable InnoDB
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
**Reduce or eliminate persistent connections to reduce connection usage**
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Variables to adjust:
max_connections (> 151)
wait_timeout (< 28800)
interactive_timeout (< 28800)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
「持続的接続を減らすか排除して接続の使用量を減らす」に関する質問があります。1。サイトの実行中に接続がいくつあるかを知るにはどうすればよいですか-PHPで記述されていますか?2.それらを減らす、または排除する方法は?my.cnf設定にそれを対象とした変数がある場合、またはPHP側でそれを行う必要がある場合はどうなりますか?
plsは助けになります、私はまだ試行錯誤をしているので、私は学んでいますが、それでもmysqlについてあまり知識がありません。ありがとう。