首页/应用软件/内容

怎么查看MySQL的版本?

应用软件2024-03-22 阅读()
[摘要]+------------+1 row in set (0.00 sec)或者:mysql> status;--------------mysql Ver 14.14 Distrib 5.6...

+------------+

1 row in set (0.00 sec)

或者:

mysql> status;

--------------

mysql Ver 14.14 Distrib 5.6.32, for Win32 (AMD64)

Connection id: 9

Current database:

Current user: root@localhost

SSL: Not in use

Using delimiter: ;

Server version: 5.6.32-log MySQL Community Server (GPL)

Protocol version: 10

Connection: localhost via TCP/IP

Server characterset: latin1

Db characterset: latin1

Client characterset: gbk

Conn. characterset: gbk

TCP port: 3307

Uptime: 4 hours 7 min 11 sec

Threads: 4 Questions: 126 Slow queries: 0 Opens: 73 Flush tables: 1 Open tables: 66 Queries per second avg: 0.008

或者:

mysql> \s

--------------

mysql Ver 14.14 Distrib 5.6.32, for Win32 (AMD64)

Connection id: 9

Current database:

Current user: root@localhost

SSL: Not in use

Using delimiter: ;

Server version: 5.6.32-log MySQL Community Server (GPL)

Protocol version: 10

Connection: localhost via TCP/IP

Server characterset: latin1

Db characterset: latin1

Client characterset: gbk

Conn. characterset: gbk

TCP port: 3307

Uptime: 4 hours 9 min 29 sec

Threads: 4 Questions: 144 Slow queries: 0 Opens: 73 Flush tables: 1 Open tables: 66 Queries per second avg: 0.009

3. 在命令行连接上MySQL服务器时,其实就已经显示了MySQL的版本,如:

e:\mysql\bin>mysql -uroot -p -P3307

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 10

Server version: 5.6.32-log MySQL Community Server (GPL)

Copyright (c) 2000, 2016, 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.

以上就是我整理到的,查看mysql当前版本的几种方法,希望会对大家有帮助。

相关文章:

如何在一台windows主机上实现MySQL的主从复制?

Mysql创建外键约束的两种方式

MySQL字符串截取 和 截取字符进行查询

以上就是如何查看MySQL的版本?的详细内容,更多请关注php中文网其它相关文章!


学习教程快速掌握从入门到精通的SQL知识。



第1页  第2页  第3页  第4页  第5页  第6页  第7页  第8页 

……

相关阅读