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 ...
随机推荐
- WPF Demo10 嵌套Winform、RadGridView、
<Window x:Class="控件Demo.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006 ...
- Android自动化框架 模拟操作 模拟测试
转自:http://bbs2.c114.net/home.php?mod=space&uid=1025779&do=blog&id=5322 几种常见的Android自动化测试 ...
- CAP原理和BASE思想--GLQ
分布式领域CAP理论,Consistency(一致性), 数据一致更新,所有数据变动都是同步的Availability(可用性), 好的响应性能Partition tolerance(分区容忍性) 可 ...
- 史上最详细 Python第三方库添加方法 and 错误解决方法
(1):如何添加python第三方库(方法一): File ->> Settings... ->> Project Interpreter (2):如何添加python第三方库 ...
- 用Keras搭建神经网络 简单模版(一)——Regressor 回归
首先需要下载Keras,可以看到我用的是TensorFlow 的backend 自己构建虚拟数据,x是-1到1之间的数,y为0.5*x+2,可视化出来 # -*- coding: utf-8 -*- ...
- appium 3-4-1034等待、日志、性能数据、xpath定位、web driver协议
1.等待 1.1精确等待 sleep 不推荐 @Test public void testWait1() throws InterruptedException{ day_time(); Thread ...
- Git 查询某次历史提交的修改内容
在工作时,有时候想查看某次的提交修改了哪些的内容. 我们首先可以git log显示历史的提交列表: 之后我们用git show <commit-hashId> 便可以显示某次提交的修改内容 ...
- servlet的讲解
https://www.ibm.com/developerworks/cn/java/j-lo-servlet/
- ffmpeg同步
1:ffmpeg解码流程 拆包,构建队列,解码,同步,显示 //计算视频Frame的显示时间//获取ptspts = 0;//decodec video frameavcodec_decode_vid ...
- 11g RAC 更改归档模式 ,归档文件存放在ASM 磁盘组(转载)
11g RAC 更改归档模式 ASM 本实验有两个节点tip01,tip02oracle_sid 分别是 tips1,tips2 1.在节点1 tip01上执行[root@tip01 ~]# su - ...