zoukankan      html  css  js  c++  java
  • mysql 全局变量和SESSION变量

    mysql> SET query_cache_size = 40000;
    ERROR 1229 (HY000): Variable 'query_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
    
    
    mysql> show variables like '%commit%';
    +--------------------------------+-------+
    | Variable_name                  | Value |
    +--------------------------------+-------+
    | autocommit                     | ON    |
    | binlog_order_commits           | ON    |
    | innodb_api_bk_commit_interval  | 5     |
    | innodb_commit_concurrency      | 0     |
    | innodb_flush_log_at_trx_commit | 1     |
    +--------------------------------+-------+
    5 rows in set (0.01 sec)
    
    mysql> set autocommit=0;
    Query OK, 0 rows affected (0.00 sec)
    
    mysql>  show variables like '%commit%';
    +--------------------------------+-------+
    | Variable_name                  | Value |
    +--------------------------------+-------+
    | autocommit                     | OFF   |
    | binlog_order_commits           | ON    |
    | innodb_api_bk_commit_interval  | 5     |
    | innodb_commit_concurrency      | 0     |
    | innodb_flush_log_at_trx_commit | 1     |
    +--------------------------------+-------+
    5 rows in set (0.01 sec)
    
    mysql> quit
    Bye
    You have new mail in /var/spool/mail/root
    test:/root# mysql -uroot -p'kjk123' 
    
    
    mysql>  show variables like '%commit%';
    +--------------------------------+-------+
    | Variable_name                  | Value |
    +--------------------------------+-------+
    | autocommit                     | ON    |

  • 相关阅读:
    第6章 对列表应用样式和创建导航条
    第3章 可视化格式模型
    第2章 为样式找到应用目标
    精通CSS 第1章
    JavaScript作用域学习笔记
    getByClass()
    判断各种数据类型
    值类型和引用类型的区别
    [原]Docker部署SuperMap8.1.1
    Docker初步
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351403.html
Copyright © 2011-2022 走看看