<?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>Fresker小站 &#187; DataBase</title>
	<atom:link href="http://www.fresker.com/old2/archives/tag/database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fresker.com/old2</link>
	<description>天将降大任于斯人也，必先苦其心志，劳其筋骨，饿其体肤，空乏其身....</description>
	<lastBuildDate>Sat, 05 May 2018 04:20:42 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>mysql优化工作学习笔记</title>
		<link>http://www.fresker.com/old2/archives/400</link>
		<comments>http://www.fresker.com/old2/archives/400#comments</comments>
		<pubDate>Fri, 22 Jul 2011 07:04:58 +0000</pubDate>
		<dc:creator>Duke</dc:creator>
				<category><![CDATA[MySQL管理工具]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[开发工具]]></category>
		<category><![CDATA[开发技术类]]></category>
		<category><![CDATA[教程类]]></category>
		<category><![CDATA[DataBase]]></category>

		<guid isPermaLink="false">http://www.fresker.com/archives/400</guid>
		<description><![CDATA[mysql优化工作学习笔记 mysql -r -u xxx -p&#160;&#160;&#160;&#160;进入 show databases;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;显示数据库 use databases;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;切换数据库 show tables;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;显示数据表 explain select * from test; explain select * from test where &#8220;id=1&#8243;; &#160; explain查询出来结果使用意义（key查询方式，是否基于索引，extra查询方式，是否使用索引，临时表，排序） &#160;&#160;&#160;&#160;key: This column defi nes the index that is used for the given table. By default, MySQL usesonly one index per table. There are a small number of exceptions; [...]]]></description>
		<wfw:commentRss>http://www.fresker.com/old2/archives/400/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql学习笔记</title>
		<link>http://www.fresker.com/old2/archives/288</link>
		<comments>http://www.fresker.com/old2/archives/288#comments</comments>
		<pubDate>Fri, 12 Nov 2010 03:45:59 +0000</pubDate>
		<dc:creator>Duke</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[开发技术类]]></category>
		<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[DataBase]]></category>

		<guid isPermaLink="false">http://www.fresker.com/?p=288</guid>
		<description><![CDATA[更新表的存储引擎： ALTER TABLE tb TYPE=MYISAM/INNODB 创建表时最好确认表不存在： CREATE TABLE IF NOT EXISTS 在数据表优化查询时，常用到临时表 可用CREATE TEMPORARY TABLE 来创建临时表，这些表在会话结束时会自动消失，使用临时表不必费心发布drop table 语句明确删除这些表 可利用select来创建一个表 CREATE TABLE new_tb SELECT * FROM tb; 添加索引方法： ALTER TABLE tb_name ADD INDEX index_name (column_list); ALTER TABLE tb_name ADD UMIQUE index_name (column_list); ALTER TABLE tb_name ADD PRIMARY KEY (column_list); or CREATE UNIQUE INDEX index_name ON tb_name(column_list); [...]]]></description>
		<wfw:commentRss>http://www.fresker.com/old2/archives/288/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MongoDB入门教程中文版</title>
		<link>http://www.fresker.com/old2/archives/248</link>
		<comments>http://www.fresker.com/old2/archives/248#comments</comments>
		<pubDate>Wed, 21 Jul 2010 00:38:39 +0000</pubDate>
		<dc:creator>Duke</dc:creator>
				<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[开发技术类]]></category>
		<category><![CDATA[教程类]]></category>
		<category><![CDATA[DataBase]]></category>

		<guid isPermaLink="false">http://www.fresker.com/?p=248</guid>
		<description><![CDATA[最近公司准备的一个项目涉及到mongoDB,自己之前不熟悉这个东东，项目的twiki上有学习的资料，在此转出来，有空大家也可以看看，大家有好的建议也希望能分享一下。 跟mysqld一样，一个mongod服务可以有建立多个数据库，每个数据库可以有多张表，这里的表名叫collection，每个collection 可以存放多个文档（document），每个文档都以BSON（binary json）的形式存放于硬盘中。跟关系型数据库不一样的地方是，它是的以单文档为单位存储的，你可以任意给一个或一批文档新增或删除字段，而不会对其它文 档造成影响，这就是所谓的schema-free，这也是文档型数据库最主要的优点。跟一般的key-value数据库不一样的是，它的value中存储 了结构信息，所以你又可以像关系型数据库那样对某些域进行读写、统计等操作。可以说是兼备了key-value数据库的方便高效与关系型数据库的强大功 能。 启动数据库 下载 &#60;a target=&#8221;_blank&#8221; href=&#8221;http://www.mongodb.org/display/DOCS/Downloads&#8221;&#62;MongoDB&#60;/a&#62;, 解压后并启动: $ bin/mongod MongoDB 默认存储数据目录为 /data/db/ (或者 c:\data\db), 当然你也可以修改成不同目录, 只需要指定 –dbpath 参数: $ bin/mongod --dbpath /path/to/my/data/dir 获取数据库连接 现在我们就可以使用自带的shell工具来操作数据库了. (我们也可以使用各种编程语言的驱动来使用MongoDB, 自带的shell工具可以方便我们管理数据库) 启动 MongoDB JavaScript 工具: $ bin/mongo 默认 shell 连接的是本机localhost 上面的 test库, 会看到: MongoDB shell version: 0.9.8 url: test connecting to: test type "help" for help [...]]]></description>
		<wfw:commentRss>http://www.fresker.com/old2/archives/248/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->