随笔分类 - MySQL
摘要:一、场景 在进行功能开发或者测试的时候,有时候会遇到查询较慢的问题 二、explain命令介绍 https://dev.mysql.com/doc/refman/8.4/en/explain.html 三、使用 字段介绍 id: 查询的序列号 select_type: 查询的类型 table: 查询
阅读全文
摘要:一、场景 使用python脚本,批量复制mock数据用于测试 二、原脚本 from concurrent.futures import ThreadPoolExecutor from common.db.mysql_connect_client import MysqlConnectCom clie
阅读全文
摘要:一、场景 测试或者开发过程中需要关注数据的慢查询并优化 二、通过SQL开启慢查询 打开MySQL shell SET GLOBAL slow_query_log = 'ON'; -- 开启慢查询日志 SET GLOBAL slow_query_log_file = '/var/lib/mysql/m
阅读全文
摘要:一、示例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
阅读全文
摘要: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-
阅读全文
摘要: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 # 新增配
阅读全文
摘要:1、创建测试计划 2、创建线程组 3、创建JDBC连接 4、添加JDBC请求 6、添加数据库操作 7、添加结果报告 8、执行并查看结果 问题1、Cannot create PoolableConnectionFactory (The server time zone value '�й���ʱ��
阅读全文
摘要:1、官网 https://www.fit2cloud.com/metersphere/index.html 2、文档 https://metersphere.io/docs/ https://github.com/metersphere/metersphere 3、环境 windwos10 jdk
阅读全文
摘要:1. 官网 http://mysql-python.sourceforge.net/MySQLdb.html 2. github地址 python2 https://github.com/farcepest/MySQLdb1 python3 https://github.com/PyMySQL/my
阅读全文
摘要: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
阅读全文
摘要:1. 网上的说法比较多 2. 我的是因为密码输错了
阅读全文
摘要:1. 官网文档 https://secure.phabricator.com/book/phabricator/article/configuration_guide/ 2. 安装nginx sudo apt-get install dpkg-dev sudo apt-get install ngi
阅读全文
摘要:1. 官网文档 https://secure.phabricator.com/book/phabricator/article/configuration_guide/ 2. 安装apache2 sudo apt-get install dpkg-dev sudo apt-get install a
阅读全文
摘要:1. 安装 sudo apt update sudo apt install mysql-server mysql-client 2. 查看密码 master@master:~$ sudo cat /etc/mysql/debian.cnf # Automatically generated for
阅读全文
摘要:这个问题是在window server 2012上安装mysql之后, 远程访问时出现的1045错误 我新建了一个相同的用户用于远程访问, 密码也相同, 但是还是访问不了 参照链接:https://blog.csdn.net/chaofei_liang/article/details/7019382
阅读全文