本文共 1183 字,大约阅读时间需要 3 分钟。
第四章:Configuring Mysql
mysql有两种参数:Static
(重启生效)和Dynamic
(不用重启即可生效)
mysql变量设置:
Config file
Startup script
Using SET command
Using config file
The default config file is /etc/my.cnf (on Red Hat and CentOS systems) and /etc/mysql/my.cnf (Debian systems)mysql配置参考样例:
[mysqld] <---section name= <---parameter values[client] = [mysqldump] = [mysqld_safe] = [server] =
Global: Applies to all the new connections
Session: Applies only to the current connectionSET GLOBAL long_query_time = 1;SET PERSIST long_query_time = 1;SET @@persist.long_query_time = 1;SET SESSION long_query_time = 1;
转载地址:http://ataii.baihongyu.com/