<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>荷包蛋博客 &#187; mysql</title>
	<atom:link href="http://www.hebaodans.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hebaodans.com</link>
	<description>好的心态是成功的开始</description>
	<lastBuildDate>Tue, 20 Jul 2010 17:32:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MySQL vs NoSQL 效率与成本之争</title>
		<link>http://www.hebaodans.com/2010/07/mysql-vs-nosql-%e6%95%88%e7%8e%87%e4%b8%8e%e6%88%90%e6%9c%ac%e4%b9%8b%e4%ba%89/</link>
		<comments>http://www.hebaodans.com/2010/07/mysql-vs-nosql-%e6%95%88%e7%8e%87%e4%b8%8e%e6%88%90%e6%9c%ac%e4%b9%8b%e4%ba%89/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 05:34:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql memcached]]></category>
		<category><![CDATA[mysql sharding]]></category>
		<category><![CDATA[mysql架构]]></category>
		<category><![CDATA[nosql]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=1335</guid>
		<description><![CDATA[<p>
最近Twitter、DIGG等计划换用基于key-value的NoSQL数据库(e.g:Cassandra)，之所以有如此动向是因为基于 MySQL + sharding + <a href='http://www.hebaodans.com/2010/07/mysql-vs-nosql-%e6%95%88%e7%8e%87%e4%b8%8e%e6%88%90%e6%9c%ac%e4%b9%8b%e4%ba%89/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>
最近Twitter、DIGG等计划换用基于key-value的NoSQL数据库(e.g:Cassandra)，之所以有如此动向是因为基于 MySQL + sharding + <a href='http://www.hebaodans.com/2010/07/mysql-vs-nosql-%e6%95%88%e7%8e%87%e4%b8%8e%e6%88%90%e6%9c%ac%e4%b9%8b%e4%ba%89/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2010/07/mysql-vs-nosql-%e6%95%88%e7%8e%87%e4%b8%8e%e6%88%90%e6%9c%ac%e4%b9%8b%e4%ba%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NoSQL数据库探讨之一 － 为什么要用非关系数据库？</title>
		<link>http://www.hebaodans.com/2010/03/n-o-s-q-l-shu-ju-ku-tan-tao-zhi-yi-wei-shi-me-yao-yong-fei-guan-xi-shu-ju-ku/</link>
		<comments>http://www.hebaodans.com/2010/03/n-o-s-q-l-shu-ju-ku-tan-tao-zhi-yi-wei-shi-me-yao-yong-fei-guan-xi-shu-ju-ku/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 15:42:02 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[CouchDB]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[nosql]]></category>
		<category><![CDATA[nosql数据库]]></category>
		<category><![CDATA[文本数据库]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=797</guid>
		<description><![CDATA[<p>关键字: <a href='http://www.hebaodans.com/2010/03/n-o-s-q-l-shu-ju-ku-tan-tao-zhi-yi-wei-shi-me-yao-yong-fei-guan-xi-shu-ju-ku/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>关键字: <a href='http://www.hebaodans.com/2010/03/n-o-s-q-l-shu-ju-ku-tan-tao-zhi-yi-wei-shi-me-yao-yong-fei-guan-xi-shu-ju-ku/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2010/03/n-o-s-q-l-shu-ju-ku-tan-tao-zhi-yi-wei-shi-me-yao-yong-fei-guan-xi-shu-ju-ku/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>amoeba性能，安全性，完整性比较</title>
		<link>http://www.hebaodans.com/2009/12/a-m-o-e-b-a-xing-neng-an-quan-xing-wan-zheng-xing-bi-jiao/</link>
		<comments>http://www.hebaodans.com/2009/12/a-m-o-e-b-a-xing-neng-an-quan-xing-wan-zheng-xing-bi-jiao/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 14:46:28 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[amoeba]]></category>
		<category><![CDATA[amoeba性能]]></category>
		<category><![CDATA[continuent]]></category>
		<category><![CDATA[mysql proxy]]></category>
		<category><![CDATA[安全性]]></category>
		<category><![CDATA[完整性比较]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=694</guid>
		<description><![CDATA[<p>airport 对这些比较看重嘛。
性能：
这方面可能是大家最关注的了，比官方的mysql <a href='http://www.hebaodans.com/2009/12/a-m-o-e-b-a-xing-neng-an-quan-xing-wan-zheng-xing-bi-jiao/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>airport 对这些比较看重嘛。
性能：
这方面可能是大家最关注的了，比官方的mysql <a href='http://www.hebaodans.com/2009/12/a-m-o-e-b-a-xing-neng-an-quan-xing-wan-zheng-xing-bi-jiao/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/12/a-m-o-e-b-a-xing-neng-an-quan-xing-wan-zheng-xing-bi-jiao/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql proxy读写分离</title>
		<link>http://www.hebaodans.com/2009/12/m-y-s-q-l-p-r-o-x-y-du-xie-fen-li/</link>
		<comments>http://www.hebaodans.com/2009/12/m-y-s-q-l-p-r-o-x-y-du-xie-fen-li/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 10:03:11 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql proxy读写分离]]></category>
		<category><![CDATA[mysql负责均衡]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=689</guid>
		<description><![CDATA[<p>MySQL Proxy处于客户端应用程序和MySQL服务器之间，通过截断、改变并转发客户端和后端数据库之间的通信来实现其功能，这和WinGate之类的网络代理服务器的基本思想是一样的。代理服务器是和TCP/IP协议打交道，而要理解MySQL <a href='http://www.hebaodans.com/2009/12/m-y-s-q-l-p-r-o-x-y-du-xie-fen-li/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>MySQL Proxy处于客户端应用程序和MySQL服务器之间，通过截断、改变并转发客户端和后端数据库之间的通信来实现其功能，这和WinGate之类的网络代理服务器的基本思想是一样的。代理服务器是和TCP/IP协议打交道，而要理解MySQL <a href='http://www.hebaodans.com/2009/12/m-y-s-q-l-p-r-o-x-y-du-xie-fen-li/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/12/m-y-s-q-l-p-r-o-x-y-du-xie-fen-li/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 多级同步</title>
		<link>http://www.hebaodans.com/2009/09/m-y-s-q-l-duo-ji-tong-bu/</link>
		<comments>http://www.hebaodans.com/2009/09/m-y-s-q-l-duo-ji-tong-bu/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 12:20:55 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[MySQL 多级同步]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=621</guid>
		<description><![CDATA[多级同步，备份，服务器排列情况：

A -&#62; B -&#62; C

在 A、B 之间，A 是 Master，B 是 Slave。...]]></description>
			<content:encoded><![CDATA[<p>
多级同步，备份，服务器排列情况：
A -&gt; B -&gt; C
在 A、B 之间，A 是 Master，B 是 Slave。
在 B、C 之间，B 是 Master，C 是Slave。
这里最重要的是 B，他既是 Slave，又是 Master。
应该在 my.cnf 中加入下述 2 行：
# binary logging &#8211; not <a href='http://www.hebaodans.com/2009/09/m-y-s-q-l-duo-ji-tong-bu/' rel="nofollow">Continue Reading</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/09/m-y-s-q-l-duo-ji-tong-bu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql最大连接数修改</title>
		<link>http://www.hebaodans.com/2009/09/m-y-s-q-l-zui-da-lian-jie-shu-xiu-gai/</link>
		<comments>http://www.hebaodans.com/2009/09/m-y-s-q-l-zui-da-lian-jie-shu-xiu-gai/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 21:23:51 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=618</guid>
		<description><![CDATA[    mysql的最大连接数默认是100, 这个数值对于并发连接很多的数据库应用是远远不够的，当连接请求大...]]></description>
			<content:encoded><![CDATA[<p>
    mysql的最大连接数默认是100, <a href='http://www.hebaodans.com/2009/09/m-y-s-q-l-zui-da-lian-jie-shu-xiu-gai/' rel="nofollow">Continue Reading</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/09/m-y-s-q-l-zui-da-lian-jie-shu-xiu-gai/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql修改用户密码</title>
		<link>http://www.hebaodans.com/2009/09/m-y-s-q-l-xiu-gai-yong-hu-mi-ma/</link>
		<comments>http://www.hebaodans.com/2009/09/m-y-s-q-l-xiu-gai-yong-hu-mi-ma/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 02:14:10 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=611</guid>
		<description><![CDATA[新手在这个上往往容易范错误，导致不能进入MYSQL，整得非常郁闷。
我来做几个例子相信很快就明白了 。
1、...]]></description>
			<content:encoded><![CDATA[<p>新手在这个上往往容易范错误，导致不能进入MYSQL，整得非常郁闷。
我来做几个例子相信很快就明白了 。
1、原来的密码是123456
C:\&gt;type mysql5.bat@echo offmysql -uroot -p123456 <a href='http://www.hebaodans.com/2009/09/m-y-s-q-l-xiu-gai-yong-hu-mi-ma/' rel="nofollow">Continue Reading</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/09/m-y-s-q-l-xiu-gai-yong-hu-mi-ma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql压力测试工具：mysqlslap</title>
		<link>http://www.hebaodans.com/2009/07/m-y-s-q-l-ya-li-ce-shi-gong-ju-m-y-s-q-l-s-l-a-p/</link>
		<comments>http://www.hebaodans.com/2009/07/m-y-s-q-l-ya-li-ce-shi-gong-ju-m-y-s-q-l-s-l-a-p/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 14:46:33 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqlslap]]></category>
		<category><![CDATA[mysql压力测试工具]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=527</guid>
		<description><![CDATA[<p>mysqlslap是一个mysql官方提供的压力测试工具。以下是比较重要的参数：
–defaults-file，配置文件存放位置
–concurrency，并发数
–engines，引擎
–iterations，迭代的实验次数
–socket，socket文件位置
自动测试：
–auto-generate-sql，自动产生测试SQL
–auto-generate-sql-load-type，测试SQL的类型。类型有mixed，update，write，key，read。
–number-of-queries，执行的SQL总数量
–number-int-cols，表内int列的数量
–number-char-cols，表内char列的数量
例如：
shell&gt;mysqlslap <a href='http://www.hebaodans.com/2009/07/m-y-s-q-l-ya-li-ce-shi-gong-ju-m-y-s-q-l-s-l-a-p/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>mysqlslap是一个mysql官方提供的压力测试工具。以下是比较重要的参数：
–defaults-file，配置文件存放位置
–concurrency，并发数
–engines，引擎
–iterations，迭代的实验次数
–socket，socket文件位置
自动测试：
–auto-generate-sql，自动产生测试SQL
–auto-generate-sql-load-type，测试SQL的类型。类型有mixed，update，write，key，read。
–number-of-queries，执行的SQL总数量
–number-int-cols，表内int列的数量
–number-char-cols，表内char列的数量
例如：
shell&gt;mysqlslap <a href='http://www.hebaodans.com/2009/07/m-y-s-q-l-ya-li-ce-shi-gong-ju-m-y-s-q-l-s-l-a-p/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/07/m-y-s-q-l-ya-li-ce-shi-gong-ju-m-y-s-q-l-s-l-a-p/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL server has gone away</title>
		<link>http://www.hebaodans.com/2009/03/m-y-s-q-l-s-e-r-v-e-r-h-a-s-g-o-n-e-a-w-a-y/</link>
		<comments>http://www.hebaodans.com/2009/03/m-y-s-q-l-s-e-r-v-e-r-h-a-s-g-o-n-e-a-w-a-y/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 09:21:12 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[gone away]]></category>
		<category><![CDATA[mysql 2006]]></category>
		<category><![CDATA[MySQL server]]></category>
		<category><![CDATA[mysql数据库连接丢失]]></category>
		<category><![CDATA[mysql连接断开]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=328</guid>
		<description><![CDATA[<p>MySQL server has gone <a href='http://www.hebaodans.com/2009/03/m-y-s-q-l-s-e-r-v-e-r-h-a-s-g-o-n-e-a-w-a-y/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>MySQL server has gone <a href='http://www.hebaodans.com/2009/03/m-y-s-q-l-s-e-r-v-e-r-h-a-s-g-o-n-e-a-w-a-y/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/03/m-y-s-q-l-s-e-r-v-e-r-h-a-s-g-o-n-e-a-w-a-y/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Replication(复制)基本原理</title>
		<link>http://www.hebaodans.com/2009/02/m-y-s-q-l-r-e-p-l-i-c-a-t-i-o-n-fu-zhi-ji-ben-yuan-li/</link>
		<comments>http://www.hebaodans.com/2009/02/m-y-s-q-l-r-e-p-l-i-c-a-t-i-o-n-fu-zhi-ji-ben-yuan-li/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 19:30:25 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[MySQL Replication]]></category>
		<category><![CDATA[mysql复制]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=263</guid>
		<description><![CDATA[<p>1、复制进程
Mysql的复制（replication）是一个异步的复制，从一个Mysql instace（称之为Master）复制到另一个Mysql <a href='http://www.hebaodans.com/2009/02/m-y-s-q-l-r-e-p-l-i-c-a-t-i-o-n-fu-zhi-ji-ben-yuan-li/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>1、复制进程
Mysql的复制（replication）是一个异步的复制，从一个Mysql instace（称之为Master）复制到另一个Mysql <a href='http://www.hebaodans.com/2009/02/m-y-s-q-l-r-e-p-l-i-c-a-t-i-o-n-fu-zhi-ji-ben-yuan-li/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/02/m-y-s-q-l-r-e-p-l-i-c-a-t-i-o-n-fu-zhi-ji-ben-yuan-li/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Cluster(MySQL 集群) 搭建</title>
		<link>http://www.hebaodans.com/2009/02/m-y-s-q-l-c-l-u-s-t-e-r-m-y-s-q-l-ji-qun-da-jian/</link>
		<comments>http://www.hebaodans.com/2009/02/m-y-s-q-l-c-l-u-s-t-e-r-m-y-s-q-l-ji-qun-da-jian/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 19:04:28 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql cluster]]></category>
		<category><![CDATA[mysql负载均衡]]></category>
		<category><![CDATA[mysql集群]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=259</guid>
		<description><![CDATA[<p>MySQL Cluster 是MySQL适合于分布式计算环境的高实用、高冗余版本。它采用了NDB Cluster 存储引擎，允许在1个 Cluster 中运行多个MySQL服务器。在MyQL <a href='http://www.hebaodans.com/2009/02/m-y-s-q-l-c-l-u-s-t-e-r-m-y-s-q-l-ji-qun-da-jian/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>MySQL Cluster 是MySQL适合于分布式计算环境的高实用、高冗余版本。它采用了NDB Cluster 存储引擎，允许在1个 Cluster 中运行多个MySQL服务器。在MyQL <a href='http://www.hebaodans.com/2009/02/m-y-s-q-l-c-l-u-s-t-e-r-m-y-s-q-l-ji-qun-da-jian/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/02/m-y-s-q-l-c-l-u-s-t-e-r-m-y-s-q-l-ji-qun-da-jian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySql主从同步负载均衡实时备份</title>
		<link>http://www.hebaodans.com/2009/02/m-y-s-q-l-zhu-cong-tong-bu-fu-zai-jun-heng-shi-shi-bei-fen/</link>
		<comments>http://www.hebaodans.com/2009/02/m-y-s-q-l-zhu-cong-tong-bu-fu-zai-jun-heng-shi-shi-bei-fen/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 19:00:11 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql replication，]]></category>
		<category><![CDATA[MySql主从同步]]></category>
		<category><![CDATA[实时备份]]></category>
		<category><![CDATA[负载均衡]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=257</guid>
		<description><![CDATA[<p>最近将四台MySQL服务器配置成主从模式以实现一定的负载均衡，好象还可以接受，至少现在没有出什么大问题。
 
MySQL同步机制基于master把所有对数据库的更新、删除 <a href='http://www.hebaodans.com/2009/02/m-y-s-q-l-zhu-cong-tong-bu-fu-zai-jun-heng-shi-shi-bei-fen/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>最近将四台MySQL服务器配置成主从模式以实现一定的负载均衡，好象还可以接受，至少现在没有出什么大问题。
 
MySQL同步机制基于master把所有对数据库的更新、删除 <a href='http://www.hebaodans.com/2009/02/m-y-s-q-l-zhu-cong-tong-bu-fu-zai-jun-heng-shi-shi-bei-fen/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/02/m-y-s-q-l-zhu-cong-tong-bu-fu-zai-jun-heng-shi-shi-bei-fen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 数据库的同步问题(双机热备)</title>
		<link>http://www.hebaodans.com/2009/02/m-y-s-q-l-shu-ju-ku-de-tong-bu-wen-ti-shuang-ji-re-bei/</link>
		<comments>http://www.hebaodans.com/2009/02/m-y-s-q-l-shu-ju-ku-de-tong-bu-wen-ti-shuang-ji-re-bei/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 15:07:37 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql 数据库的同步]]></category>
		<category><![CDATA[mysql双机热备]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=243</guid>
		<description><![CDATA[<p>



2006-10-22 04:57


网上有不少关于 mysql <a href='http://www.hebaodans.com/2009/02/m-y-s-q-l-shu-ju-ku-de-tong-bu-wen-ti-shuang-ji-re-bei/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>



2006-10-22 04:57


网上有不少关于 mysql <a href='http://www.hebaodans.com/2009/02/m-y-s-q-l-shu-ju-ku-de-tong-bu-wen-ti-shuang-ji-re-bei/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/02/m-y-s-q-l-shu-ju-ku-de-tong-bu-wen-ti-shuang-ji-re-bei/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>truncate delete drop比较</title>
		<link>http://www.hebaodans.com/2008/12/truncate-delete-drop-compare/</link>
		<comments>http://www.hebaodans.com/2008/12/truncate-delete-drop-compare/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 00:24:24 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[drop]]></category>
		<category><![CDATA[truncate]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=176</guid>
		<description><![CDATA[<p>注意:这里说的delete是指不带where子句的delete语句
相同点
truncate和不带where子句的delete, 以及drop都会删除表内的数据
不同点:
1. truncate和 delete只删除数据不删除表的结构(定义)
    drop语句将删除表的结构被依赖的约束(constrain),触发器(trigger),索引(index); 依赖于该表的存储过程/函数将保留,但是变为invalid状态.
2.delete语句是dml,这个操作会放到rollback segement中,事务提交之后才生效;如果有相应的trigger,执行的时候将被触发.
   truncate,drop是ddl, 操作立即生效,原数据不放到rollback segment中,不能回滚. 操作不触发trigger.
3.delete语句不影响表所占用的extent, 高水线(high watermark)保持原位置不动
  显然drop语句将表所占用的空间全部释放
  truncate 语句缺省情况下见空间释放到 minextents个 extent,除非使用reuse storage;   truncate会将高水线复位(回到最开始).
4.速度,一般来说: drop&gt;; truncate &gt;; delete
5.安全性:小心使用drop 和truncate,尤其没有备份的时候.否则哭都来不及
使用上,想删除部分数据行用delete,注意带上where子句. 回滚段要足够大.
想删除表,当然用drop
想保留表而将所有数据删除. 如果和事务无关,用truncate即可. 如果和事务有关,或者想触发trigger,还是用delete.
如果是整理表内部的碎片,可以用truncate跟上reuse stroage,再重新导入/插入数据
 <a href='http://www.hebaodans.com/2008/12/truncate-delete-drop-compare/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>注意:这里说的delete是指不带where子句的delete语句
相同点
truncate和不带where子句的delete, 以及drop都会删除表内的数据
不同点:
1. truncate和 delete只删除数据不删除表的结构(定义)
    drop语句将删除表的结构被依赖的约束(constrain),触发器(trigger),索引(index); 依赖于该表的存储过程/函数将保留,但是变为invalid状态.
2.delete语句是dml,这个操作会放到rollback segement中,事务提交之后才生效;如果有相应的trigger,执行的时候将被触发.
   truncate,drop是ddl, 操作立即生效,原数据不放到rollback segment中,不能回滚. 操作不触发trigger.
3.delete语句不影响表所占用的extent, 高水线(high watermark)保持原位置不动
  显然drop语句将表所占用的空间全部释放
  truncate 语句缺省情况下见空间释放到 minextents个 extent,除非使用reuse storage;   truncate会将高水线复位(回到最开始).
4.速度,一般来说: drop&gt;; truncate &gt;; delete
5.安全性:小心使用drop 和truncate,尤其没有备份的时候.否则哭都来不及
使用上,想删除部分数据行用delete,注意带上where子句. 回滚段要足够大.
想删除表,当然用drop
想保留表而将所有数据删除. 如果和事务无关,用truncate即可. 如果和事务有关,或者想触发trigger,还是用delete.
如果是整理表内部的碎片,可以用truncate跟上reuse stroage,再重新导入/插入数据
 <a href='http://www.hebaodans.com/2008/12/truncate-delete-drop-compare/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2008/12/truncate-delete-drop-compare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can’t connect to local MySQL server through socket 解决办法</title>
		<link>http://www.hebaodans.com/2008/12/cannot-connect-to-local-mysql-server-through-socket/</link>
		<comments>http://www.hebaodans.com/2008/12/cannot-connect-to-local-mysql-server-through-socket/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:33:35 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[connect fail]]></category>
		<category><![CDATA[MySQL server]]></category>
		<category><![CDATA[mysql server连接失败]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=162</guid>
		<description><![CDATA[<p>启动mysql 报错：
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
1、先查看 /etc/rc.d/init.d/mysqld status 看看m y s q l <a href='http://www.hebaodans.com/2008/12/cannot-connect-to-local-mysql-server-through-socket/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>启动mysql 报错：
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
1、先查看 /etc/rc.d/init.d/mysqld status 看看m y s q l <a href='http://www.hebaodans.com/2008/12/cannot-connect-to-local-mysql-server-through-socket/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2008/12/cannot-connect-to-local-mysql-server-through-socket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php连接mysql查询</title>
		<link>http://www.hebaodans.com/2008/09/php-mysql-query/</link>
		<comments>http://www.hebaodans.com/2008/09/php-mysql-query/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 01:26:44 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql_connect]]></category>
		<category><![CDATA[mysql_fetch_arrary]]></category>
		<category><![CDATA[mysql_query]]></category>
		<category><![CDATA[mysql_select_db]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=94</guid>
		<description><![CDATA[<p>&lt;?php
$con = mysql_connect(&#8220;localhost&#8221;,&#8221;peter&#8221;,&#8221;abc123&#8243;);
if (!$con)
  {
  die(&#8216;Could not connect: &#8216; . mysql_error());
  }
mysql_select_db(&#8220;my_db&#8221;, $con);
$result = mysql_query(&#8220;SELECT * FROM person&#8221;);
while($row = <a href='http://www.hebaodans.com/2008/09/php-mysql-query/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>&lt;?php
$con = mysql_connect(&#8220;localhost&#8221;,&#8221;peter&#8221;,&#8221;abc123&#8243;);
if (!$con)
  {
  die(&#8216;Could not connect: &#8216; . mysql_error());
  }
mysql_select_db(&#8220;my_db&#8221;, $con);
$result = mysql_query(&#8220;SELECT * FROM person&#8221;);
while($row = <a href='http://www.hebaodans.com/2008/09/php-mysql-query/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2008/09/php-mysql-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql查询数据库中所有表名</title>
		<link>http://www.hebaodans.com/2008/09/mysql-query-all-table-name/</link>
		<comments>http://www.hebaodans.com/2008/09/mysql-query-all-table-name/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 08:59:38 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[数据库]]></category>
		<category><![CDATA[查询]]></category>
		<category><![CDATA[表名]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=92</guid>
		<description><![CDATA[<p>查询数据库中所有表名
select * from information_schema.tables 
查询指定数据库中指定表的所有字段名
select column_name from information_schema.columns  where table_schema=&#8217;YOURDATABASENAME&#8217; and table_name=&#8217;YOURTABLENAME&#8217;
 <a href='http://www.hebaodans.com/2008/09/mysql-query-all-table-name/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>查询数据库中所有表名
select * from information_schema.tables 
查询指定数据库中指定表的所有字段名
select column_name from information_schema.columns  where table_schema=&#8217;YOURDATABASENAME&#8217; and table_name=&#8217;YOURTABLENAME&#8217;
 <a href='http://www.hebaodans.com/2008/09/mysql-query-all-table-name/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2008/09/mysql-query-all-table-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 当记录不存在时插入（insert if not exists）</title>
		<link>http://www.hebaodans.com/2008/08/mysql-insert-if-not-exists/</link>
		<comments>http://www.hebaodans.com/2008/08/mysql-insert-if-not-exists/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 10:24:58 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[insert if not exists]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=88</guid>
		<description><![CDATA[<p> 
示例一：插入多条记录
假设有一个主键为 client_id 的 clients 表，可以使用下面的语句：

INSERT INTO clients
(client_id, client_name, client_type)
SELECT supplier_id, supplier_name, &#8216;advertising&#8216;
FROM suppliers
WHERE not exists (select * from <a href='http://www.hebaodans.com/2008/08/mysql-insert-if-not-exists/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p> 
示例一：插入多条记录
假设有一个主键为 client_id 的 clients 表，可以使用下面的语句：

INSERT INTO clients
(client_id, client_name, client_type)
SELECT supplier_id, supplier_name, &#8216;advertising&#8216;
FROM suppliers
WHERE not exists (select * from <a href='http://www.hebaodans.com/2008/08/mysql-insert-if-not-exists/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2008/08/mysql-insert-if-not-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于 mysql error number 1051和 1418 错误的处理</title>
		<link>http://www.hebaodans.com/2008/08/mysql-error-number-1051-1418/</link>
		<comments>http://www.hebaodans.com/2008/08/mysql-error-number-1051-1418/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 09:55:58 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[1051]]></category>
		<category><![CDATA[1418]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[number]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=79</guid>
		<description><![CDATA[<p>mysql error number 1051 在网上(包括外国网) 说了一大堆,但就是没有人知道其中的缘由,这是store engine 不同造成的
例如,最开始的engine=myisam,在此基础上建了A表,那么你现在要转成innodb的方式(开启了my.cnf下的innodb的参数)现在如果再来 <a href='http://www.hebaodans.com/2008/08/mysql-error-number-1051-1418/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>mysql error number 1051 在网上(包括外国网) 说了一大堆,但就是没有人知道其中的缘由,这是store engine 不同造成的
例如,最开始的engine=myisam,在此基础上建了A表,那么你现在要转成innodb的方式(开启了my.cnf下的innodb的参数)现在如果再来 <a href='http://www.hebaodans.com/2008/08/mysql-error-number-1051-1418/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2008/08/mysql-error-number-1051-1418/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql administrator自动定时备份数据库设置</title>
		<link>http://www.hebaodans.com/2008/08/mysql-administrator-backup-mysql-database/</link>
		<comments>http://www.hebaodans.com/2008/08/mysql-administrator-backup-mysql-database/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 01:34:29 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql administrator backup，mysql database]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=54</guid>
		<description><![CDATA[<p>登陆mysql administrator后，点击backup，new projiect,输入project name，在schemata里选择要备份的数据库，点击右箭头，选好备份的数据库。在advanced options按下图设置。

在schedule按如下图设置
 
 
保存后生效
 <a href='http://www.hebaodans.com/2008/08/mysql-administrator-backup-mysql-database/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>登陆mysql administrator后，点击backup，new projiect,输入project name，在schemata里选择要备份的数据库，点击右箭头，选好备份的数据库。在advanced options按下图设置。

在schedule按如下图设置
 
 
保存后生效
 <a href='http://www.hebaodans.com/2008/08/mysql-administrator-backup-mysql-database/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2008/08/mysql-administrator-backup-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
