首页 服务 产品 文档 关于

mysql常用命令

select version()
查找数据文件存放路径
show global variables like "%datadir%"

services.msc打开服务可重启mysql


mysql提示got timeout reading communication packets的解决方法
show GLOBAL variables like '%timeout%'


set global interactive_timeout=400;
set global wait_timeout=400;


show GLOBAL variables like '%log_warning%'
set global log_warning=1;