Ansiable Manage MySQL global variables
mysql_variables - Manage MySQL global variables
New in version 1.3.
Synopsis
- 查询/设置MySQL变量
Options
| parameter | required | default | choices | comments | |
|---|---|---|---|---|---|
| config_file
(added in 2.0)
|
no | ~/.my.cnf |
指定要从中读取用户和密码的配置文件。
|
||
| connect_timeout
(added in 2.1)
|
no | 30 |
连接到MySQL服务器时的连接超时。
|
||
| login_host
|
no | localhost |
运行数据库的主机
|
||
| login_password
|
no |
The password used to authenticate with.
|
|||
| login_port
|
no | 3306 |
MySQL服务器端口。如果使用login_port,则需要将login_host定义为其他本地主机。
|
||
| login_unix_socket
|
no |
到本地连接的Unix域套接字的路径。
|
|||
| login_user
|
no |
The username used to authenticate with.
|
|||
| ssl_ca
(added in 2.0)
|
no |
|
|||
| ssl_cert
(added in 2.0)
|
no |
The path to a client public key certificate.
|
|||
| ssl_key
(added in 2.0)
|
no |
The path to the client private key.
|
|||
| value
|
no |
如果设置,则将变量值设置为此
|
|||
| variable
|
yes |
Variable name to operate
|
Examples
# Check for sync_binlog setting
- mysql_variables:
variable: sync_binlog # Set read_only variable to 1
- mysql_variables:
variable: read_only
value: 1注意
状态
该模块被标记为预览,这意味着它不能保证具有向后兼容的界面。
Ansiable Manage MySQL global variables的更多相关文章
- MYSQL SHOW VARIABLES简介
原文地址:http://www.2cto.com/database/201108/100546.html mysqld服务器维护两种变量.全局变量影响服务器的全局操作.会话变量影响具体客户端连接相关操 ...
- mysql show variables系统变量详解
mysql系统变量详解 mysqld服务器维护两种变量.全局变量影响服务器的全局操作.会话变量影响具体客户端连接相关操作. 服务器启动时,将所有全局变量初始化为默认值.可以在选项文件或命令行中指定的选 ...
- MySQL global Log
mysql> show variables like "%general_log%"; +------------------+----------------------- ...
- 关于session variables 和 global variables
背景 有同学问到这样一个问题:原来的binlog格式是statement,为什么执行了 set global binlog_format='row' 和 set binlog_format='row' ...
- error X3025:global variables are implicitly constant, enable compatibility mode to allow modification
global variables are implicitly constant, enable compatibility mode to allow modification http://xbo ...
- mysql show global variables字符超1024会被截断
show variables 会存在数据被截断的问题: select 全局变量没有问题 官网解释:https://dev.mysql.com/doc/refman/5.6/en/variables-t ...
- (转)How to Use Elasticsearch, Logstash, and Kibana to Manage MySQL Logs
A comprehensive log management and analysis strategy is vital, enabling organizations to understand ...
- MyBatis java and MySql local variables
<insert id="create" parameterType="models.entities.CategoryEntity"> set @c ...
- mysql show variables
1. back_log 指定MySQL可能的连接数量.当MySQL主线程在很短的时间内得到非常多的连接请求,该参数就起作用,之后主线程花些时间(尽管很短)检查连接并且启动一个新线程. back_log ...
随机推荐
- ES(5): ES Cluster modules settings
ES cluster 提供了针对不同模块的参数设置,可通过修改集群上各个节点的elasticsearch.yml文件,也可在集群运行时通过api接口来更新(https://www.elastic.co ...
- winform截屏
引自 http://www.cnblogs.com/aland-liu/archive/2011/07/20/Winform.html 已经注册博客好久,一直由于工作原因没有打理.今天在网上看了一个截 ...
- 渐变(Gradients)
渐变是一种可以在两个或两个以上颜色之间实现平稳过渡的效果,分为线性渐变(Linear Gradients)和径向渐变(Radial Gradients). 在演示之前,先创建一个div,并添加基础样式 ...
- appium定位方法
1.id定位 driver.find_element_by_id("这里是resource-id") 2.name定位 (新版本的appium 1.7 已经没有这个定位方法了) d ...
- 如果安装提示缺少某vistal c++ 装完仍然报错,可以尝试
https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python 从这个网站直接下载需要的包进行安装 来源 https://www.cnblogs.co ...
- linux下安装jdk7
查看linux系统是32位还是64位系统:uname --mi686 //表示是32位x86_64 // 表示是64位新建一个jdk的安装目录,我这里是在/usr/local/下新建了java目录,命 ...
- mysql 不同事务隔离级别
repeatable read 在同一事务中,同一查询多次进行时候,由于其他插入操作(insert)的事务提交,导致每次返回不同的结果集. 标准的repeatable read是允许幻读的,因为这一级 ...
- golang web框架 beego 学习 (二) router and controller
1 Router和Controller的常用配置 beego.Router("/user/admin", &controllers.UserController{}) // ...
- Microsoft Dynamics CRM 2011 安装完全教程
作者:卞功鑫,转载请保留.http://www.cnblogs.com/BinBinGo/p/4302612.html 环境介绍 WINDOWS 2008 R2 Datacenter Microsof ...
- jQuery的get()用法
这个方法主要是将jQuery对象或者jQuery对象集合转换成DOM对象或dom对象集合. get()方法中如果传递参数,表示将具体位置的jQuery对象转换成dom对象.如果没有参数,则表示返回所有 ...