文章摘要
这篇文章介绍了MySQL的连接状态,显示当前连接信息如下: - **版本**:MySQL 5.7.17(GPL社区服务器版本) - **连接状态**: - 用户:root@localhost - 数据库:当前数据库 - 连接时间:5天10小时5分钟40秒 - 字符集:utf8(服务器、客户端及快照字符集均为utf8) - **性能指标**: - 每秒平均查询数:32.138 - 开启连接数:37599 - 每秒快照 flush tables:11 - 每秒平均开连接数:1563 - 缓存 flush 次数:11 - 缓存打开次数:1563 - 每秒查询数:32.138 - 缓存 flush 次数:11 总结显示当前连接状态稳定,性能良好,字符集兼容,且未发现任何慢查询记录。
mysql> status
————–
mysql Ver 14.14 Distrib 5.7.17, for linux-glibc2.5 (x86_64) using EditLine wrapper
mysql> status
————–
mysql Ver 14.14 Distrib 5.7.17, for linux-glibc2.5 (x86_64) using EditLine wrapper
Connection id: 488398
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ”
Using delimiter: ;
Server version: 5.7.17 MySQL Community Server (GPL)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /tmp/mysql.sock
Uptime: 5 days 10 hours 5 min 40 sec
Threads: 154 Questions: 15051829 Slow queries: 0 Opens: 37599 Flush tables: 11 Open tables: 1563 Queries per second avg: 32.138
————–
mysql>
© 版权声明
文章版权归作者所有,未经允许请勿转载。



