zoukankan      html  css  js  c++  java
  • mysql5.7 是否支持partition分区?

    我们知道,查看mysql是否支持分区需要使用命令:

    show variables like %partition%';

    如果没有看到变量:

    have_partition_engine

    的值为YES,而是为empty,则说明当前mysql的版本就不支持分区。mysql从5.1开始支持分区功能。

    但是如果你使用mysql的5.6版本,同样会出现empty的结果。这又是怎么回事呢,难道mysql的5.6版本不支持分区了吗?

    不是的,5.6依然支持分区,只不过将上面的验证方式抛弃了,改用:

    show plugins;

    的方式。如图:

    这里会显示所有插件,如果有:

    partition ACTIVE STORAGE ENGINE GPL

    插件则表明支持分区。

    ps:查看mysql版本的方法:

    登陆mysql后输入:

    status

    命令就可以查看

    status命令比select version();显示的更清晰,


    参考链接:https://blog.csdn.net/dongdong9223/article/details/72291698

  • 相关阅读:
    814. Binary Tree Pruning
    50. Pow(x, n)
    698. Partition to K Equal Sum Subsets
    416. Partition Equal Subset Sum
    150. Evaluate Reverse Polish Notation
    322. Coin Change
    Vulnerable Kerbals CodeForces
    D. Domino for Young
    C. Long Beautiful Integer
    B. Modulo Equality
  • 原文地址:https://www.cnblogs.com/lxwphp/p/15453154.html
Copyright © 2011-2022 走看看