<?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>Jiramot.info &#187; mysql</title>
	<atom:link href="http://www.jiramot.info/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jiramot.info</link>
	<description>Developer&#039;s Life</description>
	<lastBuildDate>Mon, 06 Feb 2012 08:49:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>MyISAM and InnoDB</title>
		<link>http://www.jiramot.info/myisam-and-innodb</link>
		<comments>http://www.jiramot.info/myisam-and-innodb#comments</comments>
		<pubDate>Thu, 26 Nov 2009 05:47:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.jiramot.info/?p=452</guid>
		<description><![CDATA[<p>ISAM (MyISAM) ซึ่งมีความรวดเร็วในการอ่านและเขียนสูง เนื่องจากมีการจัดเก็บไว้ในรูปแบบของแฟ้มข้อมูล ซึ่งรองรับการอ่านข้อมูลพร้อมๆ กันได้ (เหมาะสำหรับ Web Application) แต่อาจจะมีปัญหาเมื่อใช้งานกับระบบที่ต้องมีการอ่าน/เขียน ข้อมูลในตารางเดียวกัน พร้อมๆ กัน ที่สำคัญ ฐานข้อมูลประเภท MyISAM จะมีปัญหาเรื่อง Index เสีย และ Data Corrupt บ่อยมาก หากใช้งานใน OS ที่เป็น Windows และมีการ Shutdown อย่างไม่ถูกต้อง ซึ่งทำให้ผู้ดูแลระบบต้องมีการซ่อมแซม (repair table bad_table) ตารางทีมีปัญหาอยู่เรื่อยๆ</p> <p>InnoDB ข้อดีคือ รองรับการทำ Transaction รองรับการอ่านและเขียน พร้อมๆ กันได้ดีกว่าฐานข้อมูลประเภท MyISAM และยังมีระบบ Auto Data Recovery หากมีการ shutdown โดยไม่เหมาะสม (ไฟดับ) ซึ่งในการใช้งานผู้ใช้สามารถเลือกได้ว่าจะให้ตารางใดเป็นประเภท InnoDB หรือ [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000000;">ISAM (MyISAM) ซึ่งมีความรวดเร็วในการอ่านและเขียนสูง เนื่องจากมีการจัดเก็บไว้ในรูปแบบของแฟ้มข้อมูล ซึ่งรองรับการอ่านข้อมูลพร้อมๆ กันได้ (เหมาะสำหรับ Web Application) แต่อาจจะมีปัญหาเมื่อใช้งานกับระบบที่ต้องมีการอ่าน/เขียน ข้อมูลในตารางเดียวกัน พร้อมๆ กัน ที่สำคัญ ฐานข้อมูลประเภท MyISAM จะมีปัญหาเรื่อง Index เสีย และ Data Corrupt บ่อยมาก หากใช้งานใน OS ที่เป็น Windows และมีการ Shutdown อย่างไม่ถูกต้อง ซึ่งทำให้ผู้ดูแลระบบต้องมีการซ่อมแซม (repair table bad_table) ตารางทีมีปัญหาอยู่เรื่อยๆ</p>
<p>InnoDB ข้อดีคือ รองรับการทำ Transaction รองรับการอ่านและเขียน พร้อมๆ กันได้ดีกว่าฐานข้อมูลประเภท MyISAM และยังมีระบบ Auto Data Recovery หากมีการ shutdown โดยไม่เหมาะสม (ไฟดับ) ซึ่งในการใช้งานผู้ใช้สามารถเลือกได้ว่าจะให้ตารางใดเป็นประเภท InnoDB หรือ MyISAM ขึ้นอยู่กับความเหมาะสม (ว่าจะเลือกความเร็ว หรือ ประสิทธิภาพ)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jiramot.info/myisam-and-innodb/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySql Command</title>
		<link>http://www.jiramot.info/create-user-in-mysql-and-grant-permission</link>
		<comments>http://www.jiramot.info/create-user-in-mysql-and-grant-permission#comments</comments>
		<pubDate>Tue, 04 Aug 2009 16:00:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.jiramot.info/?p=357</guid>
		<description><![CDATA[<p>สร้างดาต้าเบส mysql> CREATE DATABASE database_name;</p> <p>สร้าง user mysql> CREATE USER &#8216;user&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;</p> <p>กำหนดสิทธิในการเข้าถึงดาต้าเบส mysql> GRANT ALL PRIVILEGES ON database_name.* TO &#8216;user&#8217;@'localhost&#8217; WITH GRANT OPTION;</p> <p>ลบ user mysql> DROP USER user [, user2] &#8230;</p> <p>การ import dumpfile (*.sql) $mysql -u user -p -h localhost database_name < dumpfile.sql</p> <p>การ export to dumpfile.sql $mysqldump -u [...]]]></description>
			<content:encoded><![CDATA[<p>สร้างดาต้าเบส<br />
mysql> <strong>CREATE DATABASE database_name;</strong></p>
<p>สร้าง user<br />
mysql> <strong>CREATE USER &#8216;user&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;</strong></p>
<p>กำหนดสิทธิในการเข้าถึงดาต้าเบส<br />
mysql> <strong>GRANT ALL PRIVILEGES ON database_name.* TO &#8216;user&#8217;@'localhost&#8217; WITH GRANT OPTION;</strong></p>
<p>ลบ user<br />
mysql> <strong>DROP USER user [, user2] &#8230;</strong></p>
<p>การ import dumpfile (*.sql)<br />
$<strong>mysql -u user -p -h localhost database_name < dumpfile.sql</strong></p>
<p>การ export to dumpfile.sql<br />
$<strong>mysqldump -u user -p database_name > dumpfile.sql</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jiramot.info/create-user-in-mysql-and-grant-permission/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

