
数据库
文章平均质量分 58
阿飞 Jeff
某一个时候,体会到好好学习,天天向上不只是说说而已。
某一个时候,体会到以人为本,是多么重要而且是需要终身去贯彻。
我想,我的人生应该是这样的:工作技能活学活用于生活、生活更好的服务工作。
展开
-
处理docker部署的mysql8在执行sql时报错[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause...
在配置mysql.cnf的[mysqld]内新增sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION 可长期有效。安装apt install vim 提示没有apt。然后问题又来了,docker内没有常用编辑工具vi、vim。-i :直接修改读取的文件内容,而不是输出到终端。可本次mysql运行解决,重启mysql失效。......原创 2022-09-01 13:24:10 · 713 阅读 · 1 评论 -
DEFAULT CHARACTER SET DEFAULT语法错误问题记录
使用的navicat11,mysql8。原创 2022-08-10 15:24:07 · 1604 阅读 · 0 评论 -
SQL优化常用的几种技巧方法笔记
MySQL运行机理mysql 客户端/服务端通信阶段 -》查询缓存阶段-》查询优化处理阶段-》查询执行引擎阶段-》返回客户端阶段。定位慢SQL:业务驱动:根据业务反馈来确定哪些sql可能出现问题。测试驱动:通过测试确定哪些sql出现问题。慢查询日志:通过日志记录的方式查找执行效率慢的sql。慢日志查询配置:show variables like ‘slow_query_log’ //–查看是否开启慢日志保存set global slow_query_log = on //--原创 2022-01-26 17:30:37 · 1270 阅读 · 0 评论 -
ERROR: child process failed, exited with error number 1
问题描述:about to fork child process, waiting until server is ready for connections.forked process: 27280ERROR: child process failed, exited with error number 1To see additional information in this output, start without the “–fork” option.ERROR: child pro原创 2021-01-25 15:12:10 · 9412 阅读 · 1 评论 -
linux/centos单独安装mysql、mongodb客户端
安装mysql客户端下载想要版本mysql客户端 带clienthttps://downloads.mysql.com/archives/community/rpm卸载已安装mysqlrpm -qa | grep -i mysql 查询出来的rpm -e 全部卸载rpm -e mysql57-community-release-el7-9.noarchrpm -e mysql-community-server-5.7.17-1.el7.x86_64rpm -e mysql-communit原创 2020-12-16 18:03:14 · 592 阅读 · 1 评论 -
laravel MySQL连表查询on支持多条件过滤
查询班级下面所有符合条件的学生:表结构:班级表: 学生表:1、长写错误SQL:select c.,s. from class c left join student s on c.id = s.class_idwhere c.deleted = 0 and s.deleted =0返回结果:2、正确的SQL:select c.,s. from class c left join student s on c.id = s.class_id and s.deleted =0where c.de转载 2020-11-24 17:05:28 · 1585 阅读 · 0 评论 -
db2版本问题之mon_get_container
客户反应在扩容表空间时获取表空间容器时报错sql0440n no authorized routine named “mon_get_container” of type “function” having compatible arguments was found.他们说这次是用实例用户操作,之前都是用管理员用户。发来的截图能看到表空间列表,我觉得既然能看到表空间就应该能操作的,不应该是这个用户的问题。百度直接根据报错查询相关资的结果是料乱七八糟…谷歌也只能查询出Receive SQL0440N原创 2020-11-23 15:49:34 · 2198 阅读 · 0 评论