<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[拍拍尘土]]></title> 
    <link>http://blog.xg98.com/</link> 
    <description><![CDATA[五月枇杷黄，太湖银鱼肥]]></description> 
    <language>zh-cn</language> 
    <copyright><![CDATA[Copyright 2026, 拍拍尘土]]></copyright> 
    <webMaster><![CDATA[cxosoft@gmail.com (Admin)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Mon, 04 May 2026 19:35:25 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[mysql  启动时遇到  The server quit without updating PID file]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2948]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Fri, 17 Nov 2023 14:31:22 +0800</pubDate> 
      <description><![CDATA[有个centos服务器最近总是自动停mysql服务<br />手动启动服务，service mysql start 有时候正常，有时候失败。错误提示如下：<div class="code">Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/var/ryrt4r3f0678jdZ.pid).</div><br /><br />网上认为是空间满了，查看硬盘空的很.<br />接着查看mysql错误文件，提示启动失败 Innodb_buffer_pool_size 内存分配出问题。<br />这才记起服务器进行过降配，内存减少了。那问题就明白了，将 /etc/my.cnf 中  Innodb_buffer_pool_size 尺寸降低到默认值就可以启动了]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2948]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[mysql复制一个表的操作]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2937]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 22 Aug 2023 08:32:51 +0800</pubDate> 
      <description><![CDATA[<b>1、相同数据库复制表</b><br />没有想到复制一个表时间很短，500万数据的表，3秒结束了，还怀疑了5秒<div class="code">&nbsp;&nbsp; create table 新表 select * from 旧表 </div><br /><br /><b>2、同服务器不同数据库复制表</b><br /><span style="color:Red">完全复制一个表</span><div class="code">insert into db1.table1 select  *  from db2.table2</div><br /><span style="color:Red">复制前五条记录</span><div class="code">insert into db1.table1 select  *  from   db2.table2  limit 5</div><br /><span style="color:Red">不复制重复列值，如果包含自增字段肯定不会重复没必要使用distinct</span><br /> &nbsp; (distinct关键字去重会作用于所]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2937]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[mysql中插入表情符号emoji、日文片假名问题]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2869]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 26 Jul 2022 15:15:04 +0800</pubDate> 
      <description><![CDATA[<span style="color:Red">p.s.有次全部设好还乱码，查了发现自定义截取函数有问题，改为mb_substr()注意第三个编码参数，就正常了。</span><br />MySQL在5.5.3版本之后增加了这个utf8mb4的编码，mb4就是most bytes 4的意思，专门用来兼容四字节的unicode。其实，utf8mb4是utf8的超集。<br /><br /><br />一、首先修改mysql配置文件<div class="code">[client]<br />default-character-set=utf8mb4<br /><br />[mysql]<br />default-character-set=utf8mb4<br /><br />[mysqld]<br />character-set-server=utf8mb4<br />collation-server=utf8mb4_general_ci</div><br />二、建立数据库和字段的时候需要使用 utf8mb4<br /><br />三、程序中连接数据库需要使用 utf8mb4<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2869]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[mysql性能优化(thread_created和thread_cache_size)]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2835]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sat, 26 Mar 2022 15:43:35 +0800</pubDate> 
      <description><![CDATA[<span style="color:Red">p.s.phpmyadmin中看mysql状态 thread_created 过大，可以考虑增加 thread_cache_size 值</span><br /><br /><br /><b>1,查看数据库状态如下</b><div class="code">show status like &#39;thread%&#39;;</div>如图：<div style="width: 100%;overflow-x : auto;"><a href="http://blog.xg98.com/attachments/202203/26_154405_1276937202009081438536081381821334.png" target="_blank"><img src="http://blog.xg98.com/attachments/202203/26_154405_1276937202009081438536081381821334.png" alt="http://blog.xg98.com/attachments/202203/26_154405_1276937202009081438536081381821334.png" /></a></div><br /><br /><b>2，查询服务器 thread_cache_size 配置</b><div class="code">show variables like &#39;thread_cache_size&#39;;</div>如图：这是我修改以后的截图，之前是9<div style="width: 100%;overflow-x : auto;"><a href="http://blog.xg98.com/attachments/202203/26_154425_1276937202009081439570112105265150.png" target="_blank"><img src="http://blog.xg98.com/attachments/202203/26_154425_1276937202009081439570112105265150.png" alt="http://blog.xg98.com/attachments/202203/26_154425_1276937202009081439570112105265150.png" /></a></div><br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2835]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Mysql不锁表增加字段和索引方法]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2802]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 20 Sep 2021 14:02:28 +0800</pubDate> 
      <description><![CDATA[<p style="font-size: medium; white-space: normal;">5.6 以后增加了ONLINE DDL，</p><p style="font-size: medium; white-space: normal;">实现不锁表增加字段和索引非常简单。</p><h2 style="white-space: normal;">解决办法</h2><pre class="brush:python;toolbar:false;">ALTER&nbsp;TABLE&nbsp;`member`&nbsp;ADD&nbsp;`user_from`&nbsp;smallint(1)&nbsp;NOT&nbsp;NULL,&nbsp;ALGORITHM=INPLACE,&nbsp;LOCK=NONE</pre><p style="font-size: medium; white-space: normal;">ALGORITHM表示算法：default默认（根据具体操作类型自动选择），inplace（不影响DML），copy创建临时表（锁表），INSTANT只修改元数据（8.0新增，在修改名字等极少数情况可用）</p><p style="font-size: medium; white-space: normal;">LOCK表示是否锁表：default默认，none，shared共享锁，exclusive</p>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2802]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[mysql merge engine 介绍，感觉说的有点道理]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2801]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sat, 18 Sep 2021 13:40:59 +0800</pubDate> 
      <description><![CDATA[<b>MERGE引擎初体验</b><br />MERGE存储引擎又叫MRG_MyISAM存储引擎，可以把许多相同的MyISAM表可以聚集到一个表来使用。“相同”的意思是所有的表要有相同的列和相同的索引信息。<br />MERGE引擎的另一个代替方案是分割(partitioned)表(把一个独立的分割后的表放到一个单独的文件中)。分割表是一个比MERGE更好的方案，具体请参考第18章Partitioning的内容。<br />当建立一个MERGE引擎表时，会产生两个文件：.frm文件存储的是表的格式,.MRG文件包含的是这个MERGE表所包含的MyISAM表的名字(这些表可以不在同一个数据库中)。<br />MERGE表中可以使用 SELECT, DELETE, UPDATE, 和INSERT等数据库操作语言。前提是对每个包含的表都有这些权限。<br /><br /><b>注意:</b><br />如果一个用户有权限操作数据表t, 那么可以建立一个MERGE表m来访问t, 这时如果用户对t的权限没有了，仍然可以通过m来操作t。<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2801]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[mysqlbinlog增量恢复]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2782]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Fri, 30 Apr 2021 16:24:38 +0800</pubDate> 
      <description><![CDATA[<span style="color:Red">p.s.  mysqlbinlog可以按照pos和datetime，指定database，来浏览和导出为sql文件，也可以直接传递给mysql直接执行sql语句</span><br /><br />mysqlbinlog工具的作用是解析mysql的二进制binlog的日志内容，把二进制日志解析成可以在MySQL数据库里执行的SQL语句。<br />1.mysql的binlog日志是什么<br /><br />mysql数据目录下的xxx-bin.000001这样的文件就是mysql的binlog日志<br />2.mysql的binlog日志的作用<br /><br />mysql的binlog日志用于记录MySQL内部的增删改等操作，也就是对MySQL数据库更新内容的记录（对数据库的改动），对数据库进行查询的语句（如以show、select开头的语句），不会被binlog日志记录。binlog日志的主要作用是数据库的主从复制以及数据灾难后的增量恢复。<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2782]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[mysql的查询缓存query_cache相关问题]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2781]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Fri, 23 Apr 2021 09:44:14 +0800</pubDate> 
      <description><![CDATA[<span style="color:Red">p.s.表的更新不频繁可以开启query_cache，否则开启之后反而会降低性能。表中只要更新了一个点击量或者新插一条记录，则这个表相关的所有查询缓存都会清空重来。所以query_cache要慎用，建议用memcache和redis替代。</span><br /><br />在终端或phpmyadmin获取相关变量<div class="code">mysql&gt; SHOW global variables like &#39;%cache%&#39;;</div><br />在终端或phpmyadmin获取相关状态<div class="code">mysql&gt; SHOW GLOBAL STATUS LIKE &#39;%cache%&#39;</div><br />临时关闭query_cache<div class="code">mysql&gt; set global  query_cache_size=0;<br />mysql&gt; set global  query_cache_type=0;</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2781]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[MySQL表不能修改、删除等操作，卡死、锁死情况的处理办法。  show full processlist]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2780]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 15 Apr 2021 14:22:58 +0800</pubDate> 
      <description><![CDATA[MySQL如果频繁的修改一个表的数据，那么这么表会被锁死。造成假死现象。<br />解决办法：<br />首先执行：show full processlist;   列出当前的操作process，一般会看到很多waiting的process，说明已经有卡住的proces了，我们要杀死这些process！！<div class="code">show full processlist; </div> <br /><br />再执行：kill processid;   processid表示process的id，比如kill 3301，就会将id为3301的process杀死。<div class="code">kill processid; </div> <br /><br />使用 kill 将所有的 id 杀死。然后重启MySQL，一般就会解决了。如果还不行，那应该是不可能的吧。。。<br />一般情况下都不需要重启MySQL：<br />net stop mysql  //停止MySQL<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2780]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[强制mysql服务器更新日志]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2707]]></link> 
      <category><![CDATA[Mysql]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 26 Aug 2020 15:20:43 +0800</pubDate> 
      <description><![CDATA[经常命令运行了，但是日志没有实时记录下来，用下面命令强制刷新日志<br /><div class="code">mysqladmin –u root –p flush-logs</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2707]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
