随笔分类 - Mysql
Mysql常见问题
摘要:总体一句话,分库分表,负载均衡,sql优化,采用缓存中间件 1.高访问量 缓解数据库压力方案:采用数据库集群(如:PXC),添加集群数据库节点。采用Nginx负载均衡降低数据库访问压力 2.慢查询解决方案: a.表中数据量大导致的慢查询,有两种解决方案: 一数据分表:如果数据表中历史比较久,访问概率
阅读全文
摘要:mysql添加用户,并给用户设置权限: 1.本地访问用户:create user 'front'@'localhost' identified by '123456'; 2.允许外网 IP 访问create user 'front'@'%' identified by '123456'; 3.授予用
阅读全文
摘要:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is
阅读全文

浙公网安备 33010602011771号