<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛 - MySQL</title>
    <link>http://bbs.cqsztech.com/forum.php?mod=forumdisplay&amp;fid=3</link>
    <description>Latest 20 threads of MySQL</description>
    <copyright>Copyright(C) 重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 17 Apr 2026 14:45:25 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://bbs.cqsztech.com/static/image/common/logo_88_31.gif</url>
      <title>重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛</title>
      <link>http://bbs.cqsztech.com/</link>
    </image>
    <item>
      <title>应用客户端初始化mysql router后，服务无法启动</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33309</link>
      <description><![CDATA[问题现象：
   systemctl start mysqlrouter
   一直到超时，不成功


问题分析：
    systemctl status mysqlrouter 
    状态为activing
   mysql router 无法使用


   检查配置文件，找到router的日志文件
     [root@npzp7jab ~]# rpm -qa|grep router ...]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Wed, 08 Apr 2026 12:35:45 +0000</pubDate>
    </item>
    <item>
      <title>mysql innodb clusgter 元信息警告处理</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33307</link>
      <description><![CDATA[MySQL  localhost  JS &gt; cluster.status()
{
    \&quot;clusterName\&quot;: \&quot;testcluster\&quot;, 
    \&quot;defaultReplicaSet\&quot;: {
        \&quot;name\&quot;: \&quot;default\&quot;, 
        \&quot;primary\&quot;: \&quot;mysql-node1:3306\&quot;, 
        \&quot;ssl\&quot;: \&quot;REQUIRED\&quot;, 
        \&quot;status\&quot;: \&quot;OK\&quot;, 
]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Wed, 08 Apr 2026 11:49:53 +0000</pubDate>
    </item>
    <item>
      <title>MYSQL 性能基准测试</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33284</link>
      <description><![CDATA[安装 sysbench

环境：  MYSQL 8.4.8
  LINUX 10.1
  INNODB CLUSTER 1主2从+ 1 router
  4C/8G
  ssd

1.安装编译依赖

yum install -y make automake libtool pkgconfig mysql-devel

2.下载源码并编译

curl -sSL https://github.com/akopytov/sysb .. ...]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Mon, 30 Mar 2026 07:42:00 +0000</pubDate>
    </item>
    <item>
      <title>MYSQL 8.4.8 初始化日志输出</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33278</link>
      <description><![CDATA[执行MYSQL初始化
 # mysqld  --defaults-file=/etc/my.cnf --initialize --user=mysql

查看日志
cat /data/mysql/logs/error.log 
2026-03-29T23:34:27.979714+08:00 0 [System] [MY-015017] [Server] MySQL Server Initialization - start.
2026-03-29T23:34:27 ...]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Sun, 29 Mar 2026 07:46:40 +0000</pubDate>
    </item>
    <item>
      <title>mysql 8.4 mgr 3节点实施</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33245</link>
      <description><![CDATA[mysql 8.4 配置MGR

1.环境
  1.mysql 8.4
  2.os: oracle linux 10.1
  3.节点 3节点

2.配置主机名
  hostnamectl set-hostname sz-mgr-db01
  hostnamectl set-hostname sz-mgr-db02
  hostnamectl set-hostname sz-mgr-db03

3.设置主机域名解析
  vim ...]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Sun, 15 Mar 2026 06:24:58 +0000</pubDate>
    </item>
    <item>
      <title>mysql 执行命令提示符下执行操作系统命令</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33244</link>
      <description><![CDATA[至少有两种方式，一个使用\\! ,一个使用 system

1. mysql &gt; \\! ls -ltr

2. mysql&gt; system pwd

下面示例：

mysql&gt; system ip add
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:0 ...]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Sun, 15 Mar 2026 06:15:43 +0000</pubDate>
    </item>
    <item>
      <title>mysql 定制连接提示</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33243</link>
      <description><![CDATA[一种是，直接在命令行执行：

mysql&gt; prompt \\u@\\h [\\d] \\R:\\m:\\s (MGR)&gt;

另外一种，就是配置用户的配置文件

[root@sz-mgr-db01 ~]# vim .my.cnf 
[mysql]
prompt=\&quot;\\\\u@\\\\h [\\\\d] \\\\R:\\\\m:\\\\s (MGR)&gt; \&quot;
[root@sz-mgr-db01 ~]# 



[root@sz-mgr-db01 ~ ...]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Sun, 15 Mar 2026 06:11:47 +0000</pubDate>
    </item>
    <item>
      <title>MYSQL 8.4 数据库克隆</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33242</link>
      <description><![CDATA[MySQL克隆插件从8.0.17引入，能够提供快速、高效的数据库物理克隆能力，大幅简化数据复制、备份恢复和主从搭建流程。

下面列出简要步骤：

1.授权克隆需要权限
  GRANT CLONE_ADMIN, BACKUP_ADMIN ON *.* TO \'repuser\'@\'%\';

2.安装mysql clone插件
  install  ...]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Sun, 15 Mar 2026 06:04:40 +0000</pubDate>
    </item>
    <item>
      <title>基于ORACLE LINUX 10.1 MYSQL 8.4 源码安装</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33237</link>
      <description><![CDATA[基于ORACLE LINUX 10.1 MYSQL 8.4 源码安装

看了官网，我向选择二级制安装MYSQL，结果发现针对ORACLE Linux 10,官方只有RPM安装包，没有二进制的10的安装包，有的只是针对 glibc2.28,2.17的二进制安装文件
，没有办法，只有自己动手，使用源码安装。
  glibc2.28  ...]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Fri, 13 Mar 2026 10:55:27 +0000</pubDate>
    </item>
    <item>
      <title>MySQL InnoDB的数据文件与重做日志文件</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33165</link>
      <description><![CDATA[MySQL与Oracle一样都是通过逻辑存储结构来管理物理存储结构，即管理硬盘上存储的各种文件。下面将详细介绍InnoDB存储引擎中的数据文件和重做日志文件。


一、数据文件
“.ibd”文件和ibdata文件 这两种文件都是存放Innodb数据的文件，之所以有两种文件来存放Innodb ...]]></description>
      <category>MySQL</category>
      <author>jiawang</author>
      <pubDate>Sun, 08 Feb 2026 04:22:22 +0000</pubDate>
    </item>
    <item>
      <title>MySQL中大页设置</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33161</link>
      <description><![CDATA[在MySQL中启用大页（Huge Pages）可以提高性能，还可以减少内存的使用。大页能够减少操作系统的页表，由此可减轻CPU负担和内存空间，从而减少了内存管理开销。在MySQL中，InnoDB可以使用大页面为其缓冲池和额外的内存池分配内存。
1.首先要在my.cnf配置文件，开启大页 ...]]></description>
      <category>MySQL</category>
      <author>jiawang</author>
      <pubDate>Sun, 08 Feb 2026 02:20:06 +0000</pubDate>
    </item>
    <item>
      <title>MySQL 8.0 支持命令行 RESTART 命令重启数据库</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33160</link>
      <description><![CDATA[[root@localhost bin]# ./mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \\g.
Your MySQL connection id is 10
Server version: 8.0.36 MySQL Community Server - GPL


Copyright (c) 2000, 2024, Oracle and/or its ...]]></description>
      <category>MySQL</category>
      <author>jiawang</author>
      <pubDate>Sat, 07 Feb 2026 13:31:49 +0000</pubDate>
    </item>
    <item>
      <title>MySQL下的 general_log日志&#8204;</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33148</link>
      <description><![CDATA[配置MySQL的general_log(通用日志)来完整记录所有数据库操作历史，以此实现操作行为的事后审计，这是低成本实现MySQL操作追溯的常用方式。
1. 查看当前 general_log 状态（确认是否已开启）
SHOW VARIABLES LIKE \'%general%\';

2. 开启通用日志
SET GLOBAL general ...]]></description>
      <category>MySQL</category>
      <author>jiawang</author>
      <pubDate>Sun, 01 Feb 2026 04:20:45 +0000</pubDate>
    </item>
    <item>
      <title>MYSQL主从复制，主库不开归档，能进行同步吗？</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33136</link>
      <description><![CDATA[如题。
MYSQL主从复制，主库不开归档，能进行同步吗？

ORACLE必须开归档，才能配置DG，那么MYSQL呢？]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Sun, 25 Jan 2026 10:06:01 +0000</pubDate>
    </item>
    <item>
      <title>快速查看MySQL下数据库月度增长趋势sql语句</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33122</link>
      <description><![CDATA[SELECT
  table_schema AS db_name,
  CONCAT(ROUND(SUM(data_length)/1024/1024/1024, 2), \'GB\') AS current_size,
  CONCAT(ROUND(SUM(data_length - (SELECT data_length FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = t1.table_schema AND create_time &gt; ..]]></description>
      <category>MySQL</category>
      <author>jiawang</author>
      <pubDate>Wed, 21 Jan 2026 09:39:36 +0000</pubDate>
    </item>
    <item>
      <title>MySQL 在哪些场景下不会写 binlog</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33057</link>
      <description><![CDATA[背景
在 MySQL 中，慢日志不仅可以记录在文件中，还可以记录在表中。具体是记录在文件还是表中是由log_output参数决定的。

该参数默认为FILE，即慢日志默认会记录在文件中。如果参数中包含TABLE，则慢日志还会记录在mysql.slow_log中，而mysql.slow_log使用的是 CSV ...]]></description>
      <category>MySQL</category>
      <author>mahan</author>
      <pubDate>Sun, 28 Dec 2025 05:07:24 +0000</pubDate>
    </item>
    <item>
      <title>mysql查看存储过程</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32992</link>
      <description><![CDATA[方法一：
select name from mysql.proc where db = \'your_db_name\' and type= \'PROCEDURE\';
 
方法二：
show procedure status;
 
查看存储过程或函数的创建代码
show create procedure proc_name;
show create function func_name;]]></description>
      <category>MySQL</category>
      <author>jiawang</author>
      <pubDate>Thu, 18 Dec 2025 00:57:09 +0000</pubDate>
    </item>
    <item>
      <title>内存悲观锁是什么概念</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33019</link>
      <description><![CDATA[首先，需要明确一点：“内存悲观锁”并不是一个在计算机科学或数据库领域有严格、通用定义的独立术语。 它通常是在讨论数据库并发控制机制（特别是锁机制）时，用来描述一种特定锁的行为特征或实现方式。[/backcolor]我们可以从两个层面来理解它：[/backcolor]1. 核心含 ...]]></description>
      <category>MySQL</category>
      <author>郑全</author>
      <pubDate>Sat, 13 Dec 2025 03:00:40 +0000</pubDate>
    </item>
    <item>
      <title>BLOB类型列显示与录入不一致问题</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33007</link>
      <description><![CDATA[BLOB类型录入与显示结果不一致，模拟过程如下：

select pw_version();
                                 pw_version                                  
-----------------------------------------------------------------------------
 (PanWeiDB_V2.0-S3.1.1 ...]]></description>
      <category>MySQL</category>
      <author>mahan</author>
      <pubDate>Sun, 07 Dec 2025 12:11:36 +0000</pubDate>
    </item>
    <item>
      <title>MySQL中 query end状态详解及问题排查</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33006</link>
      <description><![CDATA[MySQL中，执行SHOW Processlist时，State状态值包含“query end”。通常，“query end”状态应短暂，但有长时间停留在 “query end” 状态，这个情况会导致MySQL服务不稳定甚至无响应。下面深入解析“query end”状态及其可能原因。

什么是“query end”状态
在MySQ ...]]></description>
      <category>MySQL</category>
      <author>mahan</author>
      <pubDate>Sun, 07 Dec 2025 12:10:21 +0000</pubDate>
    </item>
  </channel>
</rss>