代码之家  ›  专栏  ›  技术社区  ›  Tom Juergens

哪个版本是我的MySQL服务器?

  •  8
  • Tom Juergens  · 技术社区  · 17 年前

    确定MySQL服务器软件的确切版本号的查询语法是什么?

    4 回复  |  直到 17 年前
        1
  •  11
  •   Greg    17 年前

    你可以用 SHOW VARIABLES :

    SHOW VARIABLES WHERE Variable_name = 'version';

        2
  •  3
  •   Gennady Shumakher    17 年前

    选择版本();

        3
  •  2
  •   Pawka    17 年前

    命令行:

    mysql --version
    
        4
  •  0
  •   Nikola    13 年前

    mysql 在你的壳里。你会得到这样的结果:

    [nikola@localhost]# mysql
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 386102
    Server version: 5.1.61 Source distribution
    
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
    
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    

    在这里,您可以看到版本打印在行中 Server version: 5.1.61 Source distribution