<?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>S i X h E a D { ? } &#187; MySQL</title>
	<atom:link href="http://sixhead.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://sixhead.com</link>
	<description>เมื่อความรู้มีไว้แบ่งปัน</description>
	<lastBuildDate>Mon, 27 Feb 2012 06:23:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MySQL Installation (ports)</title>
		<link>http://sixhead.com/2008/04/11/mysql-installation-ports/</link>
		<comments>http://sixhead.com/2008/04/11/mysql-installation-ports/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 17:36:57 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FreeBSD & Linux]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[ports]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=45</guid>
		<description><![CDATA[# cd /usr/ports/databases/mysql51-server # make WITH_CHARSET=utf8 WITH_XCHARSET=all WITH_COLLATION=utf8_unicode_ci &#160; # make install &#38;&#38; make clean # mysql_install_db (/usr/local/bin/mysql_install_db) &#160; # chown -R mysql /var/db/mysql/ # chgrp -R mysql /var/db/mysql/ &#160; # /usr/local/bin/mysqld_safe -user=mysql &#38; &#160; edit /etc/rc.conf add this mysql_enable=&#34;YES&#34; &#160; Change the password to root user # /usr/local/bin/mysqladmin -u root password new-password Optionally, copy [...]]]></description>
			<content:encoded><![CDATA[<pre class="perl"><span style="color: #808080; font-style: italic;"># cd /usr/ports/databases/mysql51-server</span>
<span style="color: #808080; font-style: italic;"># make WITH_CHARSET=utf8 WITH_XCHARSET=all WITH_COLLATION=utf8_unicode_ci</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># make install &amp;&amp; make clean</span>
<span style="color: #808080; font-style: italic;"># mysql_install_db (/usr/local/bin/mysql_install_db)</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># chown -R mysql /var/db/mysql/</span>
<span style="color: #808080; font-style: italic;"># chgrp -R mysql /var/db/mysql/</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># /usr/local/bin/mysqld_safe -user=mysql &amp;</span>
&nbsp;
edit /etc/rc.conf
add this
mysql_enable=<span style="color: #ff0000;">&quot;YES&quot;</span>
&nbsp;
Change the password to root user
<span style="color: #808080; font-style: italic;"># /usr/local/bin/mysqladmin -u root password new-password</span></pre>
<p>Optionally, copy either my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf (depending on the usage and utilization of MySQL server) as my.cnf<br />
to /var/db/mysql which will enable you to tweak and change the configuration of server-specific MySQL server options by editing the file.</p>
<p><map name='google_ad_map_45_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/45?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_45_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=45&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F04%2F11%2Fmysql-installation-ports%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/04/11/mysql-installation-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Reset Password</title>
		<link>http://sixhead.com/2008/04/10/mysql-reset-password/</link>
		<comments>http://sixhead.com/2008/04/10/mysql-reset-password/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 09:41:20 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=43</guid>
		<description><![CDATA[# killall mysqld # /usr/local/bin/mysqld_safe --skip-grant-tables --skip-networking &#38; # mysql -u root mysql&#62; use mysql; mysql&#62; UPDATE user SET Password=PASSWORD&#40;&#34;1234&#34;&#41; WHERE User=&#34;root&#34;; mysql&#62; exit; # killall mysqld # /usr/local/etc/rc.d/mysql-server.sh start]]></description>
			<content:encoded><![CDATA[<pre class="perl"><span style="color: #808080; font-style: italic;"># killall mysqld</span>
<span style="color: #808080; font-style: italic;"># /usr/local/bin/mysqld_safe --skip-grant-tables --skip-networking &amp;</span>
<span style="color: #808080; font-style: italic;"># mysql -u root</span>
mysql&gt; <span style="color: #000000; font-weight: bold;">use</span> mysql;
mysql&gt; UPDATE user SET Password=PASSWORD<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;1234&quot;</span><span style="color: #66cc66;">&#41;</span> WHERE User=<span style="color: #ff0000;">&quot;root&quot;</span>;
mysql&gt; <a href="http://perldoc.perl.org/functions/exit.html"><span style="color: #000066;">exit</span></a>;
<span style="color: #808080; font-style: italic;"># killall mysqld</span>
<span style="color: #808080; font-style: italic;"># /usr/local/etc/rc.d/mysql-server.sh start</span></pre>
<p><map name='google_ad_map_43_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/43?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_43_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=43&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F04%2F10%2Fmysql-reset-password%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/04/10/mysql-reset-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

