zoukankan      html  css  js  c++  java
  • MySQL兼容性show_compatibility_56

    mysqldump备份报错

    根据报错可以知道 因为在以后的版本中表已经不存在所以报错,解决需要将参数show_compatibility_56设置为on

    [root@qa-mysql ~]# mysqldump  -uroot -p   -A > all.sql
    mysqldump: [Warning] Using a password on the command line interface can be insecure.
    mysqldump: Couldn't execute 'SELECT COUNT(*) FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'rocksdb\_skip\_fill\_cache'': The 'INFORMATION_SCHEMA.SESSION_VARIABLES' feature is disabled; see the documentation for 'show_compatibility_56' (3167)

    解决

    mysql> show variables like '%show_compatibility_56%';
    +-----------------------+-------+
    | Variable_name         | Value |
    +-----------------------+-------+
    | show_compatibility_56 | OFF   |
    +-----------------------+-------+
    1 row in set (0.01 sec)
    
    mysql> 
    mysql> 
    mysql> set global show_compatibility_56=on;
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> 
    mysql> 
    mysql> show variables like '%show_compatibility_56%';
    +-----------------------+-------+
    | Variable_name         | Value |
    +-----------------------+-------+
    | show_compatibility_56 | ON    |
    +-----------------------+-------+
    1 row in set (0.00 sec)
    
    mysql> 

    备份成功

  • 相关阅读:
    0455分发饼干 Marathon
    0078子集 Marathon
    python 实现JWT Marathon
    0376摆动序列 Marathon
    0216.组合总和 III Marathon
    028实现strStr() Marathon
    0738单调递增的数字 Marathon
    0051N皇后 Marathon
    0047全排列II Marathon
    0037解数独 Marathon
  • 原文地址:https://www.cnblogs.com/DBABlog/p/12926945.html
Copyright © 2011-2022 走看看