MySQL中的系统参数
来源:互联网 发布:mac vim 编辑 编辑:程序博客网 时间:2024/06/05 17:09
MySQL提供了相当多的系统参数,涉及方方面面。我们可以使用show关键字来查看:
show variables like ‘%keyword%’;
完整的语法是
SHOW [GLOBAL | SESSION] VARIABLES
[LIKE ‘pattern’ | WHERE expr]
由语法可知,系统变量分为global和session两种:
The server maintains two kinds of system variables. Global variables affect the overall operation of the server. Session variables affect its operation for individual client connections. A given system variable can have both a global and a session value. Global and session system variables are related as follows:
When the server starts, it initializes all global variables to their default values. These defaults can be changed by options specified on the command line or in an option file.
The server also maintains a set of session variables for each client that connects. The client’s session variables are initialized at connect time using the current values of the corresponding global variables.
下面是系统参数清单:
http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html
指定或修改系统变量
System variable values can be set globally at server startup by using options on the command line or in an option file.也就是说在使用mysqld启动MySQL时,带上参数。或在my.cnf文件中加入。且一部分系统变量可以被动态修改,不需要重启MySQL。例如:
mysql> SET GLOBAL general-log=ON;
下面是所有动态参数的清单:
https://dev.mysql.com/doc/refman/5.7/en/dynamic-system-variables.html
- MySQL中的系统参数
- Mysql中的sync_binlog参数
- Mysql复制中的参数
- Mysql中的sync_binlog参数
- 常见Mysql系统参数调整
- MySQL查询缓存系统参数
- Oracle数据库中的系统参数
- MYSQL系统优化与系统设置参数
- mysql中的主要的参数
- 浅析MySQL中的explain参数
- Mysql系统参数优化性能篇
- MySQL中的内置系统函数
- MySQL中的内置系统函数
- 了解Oracle数据库中的系统参数
- 了解Oracle数据库中的系统参数
- linux中的一些系统参数介绍
- Wp7中的可用的系统参数
- Linux系统调用中的参数验证
- PowerVR 7架构解析
- Javascript 和 json 使用Ajax
- JS获取url参数及url编码、解码
- cocos2d-js在web使用时,一定要把资源加入到resource.js里面~~否则各种bug
- wordpress网站打开速度优化压缩html代码
- MySQL中的系统参数
- JSON和JS对象之间的互转
- 如何学习自动化测试
- C++基本概念——常用基本内置类型
- Android客户端与服务器交互中的token
- 给tableView 截个图 只要cell的截图
- Maven安装
- 做一个分享的人
- 滚动周14天