คำสั่งดูเวอร์ชัน
C:\mysql\bin> mysqladmin -u root version
ตัวอย่างผลลัพธ์
mysqladmin Ver 8.42 Distrib 5.7.20, for Win64 on x86_64
Copyright (c) 2000, 2017, Oracle and/or its affiliates.
Server version 5.7.20
Protocol version 10
Connection localhost via TCP/IP
TCP port 3306
Uptime 12 min 54 sec
Threads 1
Questions 5
Slow queries 0
Opens 105
Flush tables 1
Open tables 98
Queries per second avg 0.0060
ข้อมูลสำคัญ
- Server version: เวอร์ชัน MySQL Server (5.7.20)
- Protocol version: โปรโตคอลการเชื่อมต่อ
- Connection: ประเภทการเชื่อมต่อ (TCP/IP, Socket, Pipe)
- Uptime: เวลาทำงานต่อเนื่อง
วิธีอื่น
mysql -u root -p -e "SELECT VERSION();"
-- หรือใน MySQL shell:
SELECT VERSION();
SHOW VARIABLES LIKE 'version';