MySQL:检查什么版本:32 位或 64 位?

2021-12-28 00:00:00 version terminal mysql

我可以使用终端告诉我正在运行的 MySQL 版本(32 位还是 64 位)?

Can I tell what version (32 bit or 64 bit) of MySQL I am running by using Terminal?

推荐答案

$ mysql --version
mysql  Ver 14.14 Distrib 5.1.45, for apple-darwin10.2.0 (i386) using readline 6.2


$ echo 's' | mysql
--------------
mysql  Ver 14.14 Distrib 5.1.45, for apple-darwin10.2.0 (i386) using readline 6.2

Connection id:      105730
[...]
Server version:     5.1.41 MySQL Community Server (GPL)
[...]
Uptime:         11 days 4 hours 2 min 6 sec

Threads: 2  Questions: 1141270  Slow queries: 0  Opens: 6137  Flush tables: 1  Open tables: 56  Queries per second avg: 1.182
--------------

相关文章