<br />
<b>Deprecated</b>:  mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in <b>/www/wwwroot/ipda.org.cn/source/class/discuz/discuz_database.php</b> on line <b>177</b><br />
<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>天空小小岛技术网站 - MySQL</title>
    <link>http://tkxxd.net/forum-17-1.html</link>
    <description>Latest 20 threads of MySQL</description>
    <copyright>Copyright(C) 天空小小岛技术网站</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Mon, 01 Jun 2026 05:10:21 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://tkxxd.net/static/image/common/logo_88_31.gif</url>
      <title>天空小小岛技术网站</title>
      <link>http://tkxxd.net/</link>
    </image>
    <item>
      <title>Error: Got error 134 from storage engine Errno.: 1030</title>
      <link>http://tkxxd.net/thread-302-1-1.html</link>
      <description><![CDATA[用命令检查了一下表
check table 表名;
发现数据库表损坏，修复一下表

repair table 表名;]]></description>
      <category>MySQL</category>
      <author>八号</author>
      <pubDate>Mon, 14 Nov 2011 09:42:13 +0000</pubDate>
    </item>
    <item>
      <title>MySQL server has gone away (error 2006)</title>
      <link>http://tkxxd.net/thread-292-1-1.html</link>
      <description><![CDATA[1、mysql 服务器数据库超时或者已断开数据库连接
尝试修改mysql 配置文件 my.cnf
加大 wait_timeout 的值 （默认 28800秒即8小时）

2、服务器丢失不正确的数据或者数据太大
尝试修改mysql配置文件 my.cnf
加大 max_allowed_packet 的值

修改以上值 需要重启 m ...]]></description>
      <category>MySQL</category>
      <author>八号</author>
      <pubDate>Fri, 14 Oct 2011 04:12:40 +0000</pubDate>
    </item>
    <item>
      <title>CentOS 5 编译安装 MySQL 5.5.x 版本</title>
      <link>http://tkxxd.net/thread-283-1-1.html</link>
      <description><![CDATA[Oracle表示，按照内部的标准，在Linux上，MySQL 5.5的读写速度比5.1版本提升了360%。在Windows Server机器上，这方面性能的提升超过了1500%。
    而我们的 Discuz!  和 Discuz! X 系列都可以完美兼容 MySQL 5.5 版本，不会像某个其他论坛软件那样会出现 TYPE 报错 ...]]></description>
      <category>MySQL</category>
      <author>八号</author>
      <pubDate>Fri, 02 Sep 2011 03:41:33 +0000</pubDate>
    </item>
    <item>
      <title>Can\'t connect to MySQL server on \'xx.xx.xx.xx\' (110)  错误</title>
      <link>http://tkxxd.net/thread-281-1-1.html</link>
      <description><![CDATA[连接mysql时 出现错误此处错误id 110 用perror 查出结果为可以查看一下网络是否正常，使用查看一下mysql的端口是否能打开连通]]></description>
      <category>MySQL</category>
      <author>八号</author>
      <pubDate>Fri, 02 Sep 2011 03:15:38 +0000</pubDate>
    </item>
    <item>
      <title>mysql 读写分离的主从配置</title>
      <link>http://tkxxd.net/thread-277-1-1.html</link>
      <description><![CDATA[两台服务器
主库（Master）为： 10.0.4.158
从库（Slave）为：10.0.4.162
主从服务器的MySQL版本一致

一、登录Master服务器,修改my.ini ,添加如下内容：配置完重启 mysql

二、在主库建立 slave 复制所要使用的用户；三、将主库中以上配置的需要同步的 ultrax  ...]]></description>
      <category>MySQL</category>
      <author>云天一</author>
      <pubDate>Thu, 25 Aug 2011 03:35:51 +0000</pubDate>
    </item>
    <item>
      <title>MySQL解决sending data的方法</title>
      <link>http://tkxxd.net/thread-276-1-1.html</link>
      <description><![CDATA[用MySQL的show processlist;语句查看的时候，发现有好几个sending data出现，都是查询语句引起的。

主要原因可能是所查询的语句 WHERE 条件的字段没有索引引起的

可以尝试优化sql语句 或者对条件中使用到的字段建立索引]]></description>
      <category>MySQL</category>
      <author>s.Bo</author>
      <pubDate>Wed, 24 Aug 2011 01:08:12 +0000</pubDate>
    </item>
    <item>
      <title>MySql创建用户及授权 GRANT和REVOKE的使用方法</title>
      <link>http://tkxxd.net/thread-272-1-1.html</link>
      <description><![CDATA[当你对一个用户发出一条GRANT语句时，在user表中为该用户创建一条记录。如果语句指定任何全局权限（管理权限或适用于所有数据库的权限），这些也记录在user表中。如果你指定数据库、表和列级权限，他们被分别记录在db、tables_priv和columns_priv表中。
     用GRANT和 ...]]></description>
      <category>MySQL</category>
      <author>s.Bo</author>
      <pubDate>Sat, 13 Aug 2011 01:56:58 +0000</pubDate>
    </item>
    <item>
      <title>设计数据库表结构时，注意 mysql 数据类型长度</title>
      <link>http://tkxxd.net/thread-263-1-1.html</link>
      <description><![CDATA[日前碰到一论坛出现问题 缓存中一个数组很奇怪的少了一截，而后面的数据又是完整的

查了程序 发现程序在所拼接的数据都是完整的并不存在问题

但数据写到库里面，也很顺利并没有报错，但读出来后就少了一截

因为排查问题都是假设默认程序是没有任何问题的前提下 ...]]></description>
      <category>MySQL</category>
      <author>s.Bo</author>
      <pubDate>Sun, 05 Jun 2011 04:06:41 +0000</pubDate>
    </item>
    <item>
      <title>Mysql 字段类型及对应长度</title>
      <link>http://tkxxd.net/thread-262-1-1.html</link>
      <description><![CDATA[一、数字类型
识別Null与Not Null ：Null为允许储存空值(Null)
二、数值
识別ZeroFill：当设置关键字ZeroFill 则为自动填满0，如 000021
三、日期时间]]></description>
      <category>MySQL</category>
      <author>八号</author>
      <pubDate>Fri, 03 Jun 2011 16:37:44 +0000</pubDate>
    </item>
    <item>
      <title>Lost connection to MySQL server at \'reading initial communication packet\'</title>
      <link>http://tkxxd.net/thread-261-1-1.html</link>
      <description><![CDATA[MySQL Server Error:
Lost connection to MySQL server at \'reading initial communication packet\'

网上很多人说原因为mysql反向解析域名时出错需要在mysql 配置文件中加另外的原因一、

实际碰到一个用户 程序从一台 windows 迁移到 linux 后 

程序中的数据 ...]]></description>
      <category>MySQL</category>
      <author>八号</author>
      <pubDate>Wed, 01 Jun 2011 14:36:01 +0000</pubDate>
    </item>
    <item>
      <title>MYSQL5.1或者以后版本开启慢查询的正确语句</title>
      <link>http://tkxxd.net/thread-252-1-1.html</link>
      <description><![CDATA[之前版本的mysql 开启慢查询 参考 http://tkxxd.net/thread-22-1-1.html]]></description>
      <category>MySQL</category>
      <author>s.Bo</author>
      <pubDate>Fri, 01 Apr 2011 02:27:18 +0000</pubDate>
    </item>
    <item>
      <title>myisamchk 修复表索引</title>
      <link>http://tkxxd.net/thread-233-1-1.html</link>
      <description><![CDATA[mysql 手册里一句话:

当数据表不正常关闭(例如服务器不正常关机, 停电, 当机), 数据库索引文件将有可能损坏. 这种情况下可以尝试以下的修复方式来进行修复. 不是顺序执行, 是三种方法. 操作前请关闭数据库并备份好, 以防万一.

1.安全修复: 使用 -q 参数将跳过数据 ...]]></description>
      <category>MySQL</category>
      <author>一粒米</author>
      <pubDate>Wed, 01 Dec 2010 11:31:12 +0000</pubDate>
    </item>
    <item>
      <title>MYSQL 函数 IF() 的使用 (MYSQL SUM IF)</title>
      <link>http://tkxxd.net/thread-220-1-1.html</link>
      <description><![CDATA[SUM 相信大家都会用, 例如:只是有的时候, 这个需要统计的值有可能是负值, 我们需要区分负值总和与正值总和, 来了解更清楚的情况, 这个时候就可以用到 IF 这个函数了

例如:MYSQL 手册中是这么解释的:
IF(expr1,expr2,expr3) 
如果 expr1 是TRUE (expr1  0 and expr1 ...]]></description>
      <category>MySQL</category>
      <author>一粒米</author>
      <pubDate>Wed, 10 Nov 2010 08:39:26 +0000</pubDate>
    </item>
    <item>
      <title>mysql优化 配置文件参数解释</title>
      <link>http://tkxxd.net/thread-219-1-1.html</link>
      <description><![CDATA[user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
# 默认存储引擎
default_table_type = InnoDB
# 避免MySQL的外部锁定
skip-external-locking
# 禁止DNS解析 这个选项将不允许使用 lo ...]]></description>
      <category>MySQL</category>
      <author>s.Bo</author>
      <pubDate>Wed, 10 Nov 2010 07:53:07 +0000</pubDate>
    </item>
    <item>
      <title>mysql主从同步快速设置</title>
      <link>http://tkxxd.net/thread-218-1-1.html</link>
      <description><![CDATA[记录一个比较简便的mysql的主从同步设置步骤，方便日后使用。

安装环境
centos 5.4
mysql 5.1.xx 采用rpm直接安装
xtrabackup 1.2.22 采用rpm直接安装
[mysqld]  
server-id = 1  
log-bin  
innodb_flush_log_at_trx_commit=1  
sync_binlog=1  
datadir=/ ...]]></description>
      <category>MySQL</category>
      <author>s.Bo</author>
      <pubDate>Wed, 10 Nov 2010 07:49:34 +0000</pubDate>
    </item>
    <item>
      <title>MySQL Show命令的使用</title>
      <link>http://tkxxd.net/thread-217-1-1.html</link>
      <description><![CDATA[show tables或show tables from database_name;
解释：显示当前数据库中所有表的名称

show databases;
解释：显示mysql中所有数据库的名称

show processlist;
解释：显示系统中正在运行的所有进程，也就是当前正在执行的查询。大多数用户可以查看
他们自己的 ...]]></description>
      <category>MySQL</category>
      <author>s.Bo</author>
      <pubDate>Wed, 10 Nov 2010 07:48:25 +0000</pubDate>
    </item>
    <item>
      <title>windows的命令行下MySql导入导出.sql文件</title>
      <link>http://tkxxd.net/thread-216-1-1.html</link>
      <description><![CDATA[一、MySql的命令行模式的设置：
win下 桌面-&gt;我的电脑-&gt;属性-&gt;环境变量-&gt;编辑-&gt;
path=“；path\\mysql\\bin;”其中path为MYSQL的安装路径。

二、进入MySql 的方法：

1、C:\\&gt;mysql -h hostname -u username -p 
按ENTER键，等待然后输入密码。
这里hostname为服 ...]]></description>
      <category>MySQL</category>
      <author>s.Bo</author>
      <pubDate>Thu, 28 Oct 2010 11:25:22 +0000</pubDate>
    </item>
    <item>
      <title>key_buffer 和 key_buffer_size 的区别</title>
      <link>http://tkxxd.net/thread-205-1-1.html</link>
      <description><![CDATA[在很多文档里有的用 key_buffer, 有的用 key_buffer_size , 也没有谁说明一下这两者的区别, 这里就介绍一下.
可以说这个是一个 my.cnf 的语法问题
用下面的方式来表述这两者的区别

早期
set-variable = key_buffer_size=128M

后来
key_buffer_size=128M

再 ...]]></description>
      <category>MySQL</category>
      <author>一粒米</author>
      <pubDate>Thu, 26 Aug 2010 13:47:11 +0000</pubDate>
    </item>
    <item>
      <title>mysql 中的 if() 函数</title>
      <link>http://tkxxd.net/thread-204-1-1.html</link>
      <description><![CDATA[IF(expr1,expr2,expr3) 
如果 expr1 是TRUE (expr1  0 and expr1  NULL)，则 IF()的返回值为expr2; 否则返回值则为 expr3。IF() 的返回值为数字值或字符串值，具体情况视其所在语境而定。

例句:不过同一条件的话, 可以用这个语句]]></description>
      <category>MySQL</category>
      <author>一粒米</author>
      <pubDate>Thu, 26 Aug 2010 04:02:33 +0000</pubDate>
    </item>
    <item>
      <title>列最大,最大列,列最小,最小列</title>
      <link>http://tkxxd.net/thread-202-1-1.html</link>
      <description><![CDATA[列最大 MAX

最大列 GREATEST

列最小 MIN

最小列 LEAST]]></description>
      <category>MySQL</category>
      <author>一粒米</author>
      <pubDate>Thu, 19 Aug 2010 08:27:53 +0000</pubDate>
    </item>
  </channel>
</rss>