mysql常用全局参数,设置一个持久的全局MySQL参数
生活随笔
收集整理的這篇文章主要介紹了
mysql常用全局参数,设置一个持久的全局MySQL参数
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
I set the following MySQL parameter:
set global wait_timeout=2147483
However, after server restart it reverted to its default value 28800. Isn't the set command persistent? In order to have this parameter persistent, should I edit a configuration file? Would that file be C:\Program Files\MySQL\MySQL Server 5.5\my.ini? If so, is it simply
wait_timeout=2147483
If so, under which section should it be in my.ini
解決方案
Set global doesn't make persistent variables.
You should write that under [mysqld] section in my.cnf:
[mysqld]
wait_timeout=86400
總結(jié)
以上是生活随笔為你收集整理的mysql常用全局参数,设置一个持久的全局MySQL参数的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql 介绍 知乎_SQL介绍——M
- 下一篇: mysql自增id前端安全显示_mysq