随笔分类 -  MySQL

摘要:一、场景 在进行功能开发或者测试的时候,有时候会遇到查询较慢的问题 二、explain命令介绍 https://dev.mysql.com/doc/refman/8.4/en/explain.html 三、使用 字段介绍 id: 查询的序列号 select_type: 查询的类型 table: 查询 阅读全文
posted @ 2024-12-05 16:26 代码诠释的世界 阅读(15) 评论(0) 推荐(0) 编辑
摘要:一、场景 使用python脚本,批量复制mock数据用于测试 二、原脚本 from concurrent.futures import ThreadPoolExecutor from common.db.mysql_connect_client import MysqlConnectCom clie 阅读全文
posted @ 2024-08-07 11:21 代码诠释的世界 阅读(268) 评论(0) 推荐(0) 编辑
摘要:一、场景 测试或者开发过程中需要关注数据的慢查询并优化 二、通过SQL开启慢查询 打开MySQL shell SET GLOBAL slow_query_log = 'ON'; -- 开启慢查询日志 SET GLOBAL slow_query_log_file = '/var/lib/mysql/m 阅读全文
posted @ 2024-06-26 17:31 代码诠释的世界 阅读(174) 评论(0) 推荐(0) 编辑
摘要:一、示例1 select * from bi.test where DATE_FORMAT(UPDATE_TIME, '%Y-%m-%d') = '2023-09-11'; 当然 '%Y-%m-%d'是可以根据实际需求调整的 二、示例22.1 给时间增加一小时 UPDATE bi.test SET 阅读全文
posted @ 2023-10-18 11:22 代码诠释的世界 阅读(111) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://sonic-cloud.gitee.io/#/Deploy 2、github https://github.com/SonicCloudOrg 3、下载 https://download.sonic-cloud.wiki/sonic/sonic-server/v1.5.0- 阅读全文
posted @ 2022-09-16 13:19 代码诠释的世界 阅读(477) 评论(0) 推荐(0) 编辑
摘要:1、docker hub https://hub.docker.com/_/mysql 2、创建目录 mkdir -p $HOME/mysql/conf $HOME/mysql/data $HOME/mysql/log 3、编辑配置文件 # 编辑配置文件my.cnf vim my.cnf # 新增配 阅读全文
posted @ 2022-08-01 15:34 代码诠释的世界 阅读(393) 评论(0) 推荐(0) 编辑
摘要:1、创建测试计划 2、创建线程组 3、创建JDBC连接 4、添加JDBC请求 6、添加数据库操作 7、添加结果报告 8、执行并查看结果 问题1、Cannot create PoolableConnectionFactory (The server time zone value '�й���׼ʱ�� 阅读全文
posted @ 2022-07-30 17:42 代码诠释的世界 阅读(419) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://www.fit2cloud.com/metersphere/index.html 2、文档 https://metersphere.io/docs/ https://github.com/metersphere/metersphere 3、环境 windwos10 jdk 阅读全文
posted @ 2022-07-28 16:44 代码诠释的世界 阅读(2008) 评论(0) 推荐(0) 编辑
摘要:1. 官网 http://mysql-python.sourceforge.net/MySQLdb.html 2. github地址 python2 https://github.com/farcepest/MySQLdb1 python3 https://github.com/PyMySQL/my 阅读全文
posted @ 2022-03-17 20:21 代码诠释的世界 阅读(475) 评论(0) 推荐(0) 编辑
摘要:1. 官网 https://pymysql.readthedocs.io/en/latest/ 2. 安装 You can install it with pip: $ python3 -m pip install PyMySQL To use "sha256_password" or "cachi 阅读全文
posted @ 2022-03-16 21:01 代码诠释的世界 阅读(198) 评论(0) 推荐(0) 编辑
摘要:1. 网上的说法比较多 2. 我的是因为密码输错了 阅读全文
posted @ 2022-03-16 14:06 代码诠释的世界 阅读(321) 评论(0) 推荐(0) 编辑
摘要:1. 官网文档 https://secure.phabricator.com/book/phabricator/article/configuration_guide/ 2. 安装nginx sudo apt-get install dpkg-dev sudo apt-get install ngi 阅读全文
posted @ 2021-12-16 15:41 代码诠释的世界 阅读(176) 评论(0) 推荐(0) 编辑
摘要:1. 官网文档 https://secure.phabricator.com/book/phabricator/article/configuration_guide/ 2. 安装apache2 sudo apt-get install dpkg-dev sudo apt-get install a 阅读全文
posted @ 2021-12-16 13:57 代码诠释的世界 阅读(202) 评论(0) 推荐(0) 编辑
摘要:1. 安装 sudo apt update sudo apt install mysql-server mysql-client 2. 查看密码 master@master:~$ sudo cat /etc/mysql/debian.cnf # Automatically generated for 阅读全文
posted @ 2021-12-15 13:38 代码诠释的世界 阅读(1615) 评论(0) 推荐(0) 编辑
摘要:这个问题是在window server 2012上安装mysql之后, 远程访问时出现的1045错误 我新建了一个相同的用户用于远程访问, 密码也相同, 但是还是访问不了 参照链接:https://blog.csdn.net/chaofei_liang/article/details/7019382 阅读全文
posted @ 2019-06-02 17:30 代码诠释的世界 阅读(1687) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示