mysql性能调优、连接数、问题排查等

文章目录

查看连接数

show status like '%connect%';

Aborted_connects 0

Connection_errors_accept 0

Connection_errors_internal 0

Connection_errors_max_connections 0

Connection_errors_peer_address 0

Connection_errors_select 0

Connection_errors_tcpwrap 0
Connections 410

Global_connection_memory 0

Locked_connects 0
Max_used_connections 92

Max_used_connections_time 2025-12-17 16:21:23

Mysqlx_connection_accept_errors 0

Mysqlx_connection_errors 0

Mysqlx_connections_accepted 0

Mysqlx_connections_closed 0

Mysqlx_connections_rejected 0

Performance_schema_session_connect_attrs_longest_seen 136

Performance_schema_session_connect_attrs_lost 0

Ssl_client_connects 0

Ssl_connect_renegotiates 0

Ssl_finished_connects 0
Threads_connected 85

错误日志在哪里
sql 复制代码
命令:
SHOW VARIABLES LIKE 'log_error';
输出结果:
log_error	/data/mysql/error.log
查看配置文件在哪里

SHOW VARIABLES LIKE "%core%";

‌对于Linux/Unix系统‌,配置文件通常位于/etc/mysql/my.cnf(Debian/Ubuntu)或/etc/my.cnf(RedHat/CentOS),或者/etc/mysql/mysql.conf.d/mysqld.cnf。

‌对于Windows系统‌,配置文件通常位于C:\ProgramData\MySQL\MySQL Server X.X\my.ini,其中X.X是MySQL的版本号。

报错

相关推荐
XDHCOM21 小时前
ORA-32484重复列名错误,ORACLE数据库CYCLE子句故障修复与远程处理方案
数据库·oracle
翻斗包菜21 小时前
PostgreSQL 日常维护完全指南:从基础操作到高级运维
运维·数据库·postgresql
呆瑜nuage21 小时前
MySQL表约束详解:8大核心约束实战指南
数据库·mysql
liliangcsdn21 小时前
Agent Memory智能体记忆系统的示例分析
数据库·人工智能·全文检索
那个失眠的夜21 小时前
Mybatis延迟加载策略
xml·java·数据库·maven·mybatis
Rick199321 小时前
SQL 执行流程
数据库·sql
M--Y21 小时前
Redis常用数据类型
数据结构·数据库·redis
元宝骑士1 天前
FIND_IN_SET使用指南:场景、优缺点与MySQL优化策略
后端·mysql
猿小喵1 天前
MySQL慢查询分析与处理-第二篇
数据库·mysql·性能优化
Y001112361 天前
MySQL-进阶
开发语言·数据库·sql·mysql