<?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>fengcool.com &#187; MySQL</title>
	<atom:link href="http://www.fengcool.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fengcool.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Make a copy of mysql table</title>
		<link>http://www.fengcool.com/2009/10/make-copy-mysql-table/</link>
		<comments>http://www.fengcool.com/2009/10/make-copy-mysql-table/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 01:55:23 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[copy table]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=132</guid>
		<description><![CDATA[copy mysql table]]></description>
			<content:encoded><![CDATA[<p>One SQL to make a copy of existing MySQL table ( table structure and records )</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> clone_table <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> original_table <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008080;">1</span></pre></td></tr></table></div>

<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2009%2F10%2Fmake-copy-mysql-table%2F&amp;linkname=Make%20a%20copy%20of%20mysql%20table"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2009/10/make-copy-mysql-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup MySQL databases to remote server using mysql-zrm</title>
		<link>http://www.fengcool.com/2008/11/backup-mysql-to-remote-server-using-mysql-zrm/</link>
		<comments>http://www.fengcool.com/2008/11/backup-mysql-to-remote-server-using-mysql-zrm/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 04:45:17 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql-zrm]]></category>
		<category><![CDATA[zrm]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=57</guid>
		<description><![CDATA[using mysql-zrm to backup a large databases from a client server. A step by step tutorial teach you the best way to backup your MySQL database.]]></description>
			<content:encoded><![CDATA[<p>Recently I use mysql-zrm to backup a large databases from a client server. I can backup all databases or a set of database or maybe some of tables with one line linux command. Pretty easy to use.</p>
<p>You may imagine that mysql-zrm is a strong management tool of mysql, mysqldump and mysqlhotcopy.  The key benifits for me are : I can backup all databases at once with my databases are automatically created if a new client comes; mysql-zrm is able to save compressed data to different folder, so I can keep saved data up to seven days (you may do it one month or maybe one year); It also has a scheduler to do your task every certain time you want.</p>
<p><strong>Installation:</strong></p>
<p>1. login to your backup server</p>
<p>2. Download rpm from http://www.zmanda.com/download-zrm.php</p>
<p>3. If you don&#8217;t have Perl installed, run &#8221; yum install perl &#8221;</p>
<p>4. run &#8221; rpm -ivh MySQL-zrm-2.0-1.noarch.rpm &#8221;</p>
<p>5. &#8220;  vi /etc/mysql-zrm/mysql-zrm.conf &#8221; update following parameters in file</p>
<p>backup-mode=logical [ ideally raw for myisam engine and logical for innodb. but I recommend using logical for default. Because when I use raw for default value, and if there is table with innodb engine exist, zrm will prompt me password for mysql@(server_ip) which have no idea about linux mysql user login ]</p>
<p>destination=/home/mybackup_dir  [ specify where backup files will be stored]</p>
<p><strong>Start backup:</strong></p>
<p>mysql-zrm &#8211;action backup &#8211;host xxx.xxx.xxx.xxx &#8211;user aabb &#8211;password ccdd  &#8211;backup-set abcd</p>
<p>where<br />
&#8211;host is remote server IP for MySQL<br />
&#8211;user is remote MySQL server  user login<br />
&#8211;password is remote MySQL server  user login password<br />
&#8211;backup-set is backup folder name</p>
<p><strong>Result:</strong></p>
<p>after running the command, you will get backup file in the path look like this</p>
<p>/home/mybackup_dir/abcd/20081128195236</p>
<p><strong>Restore database to local server:</strong></p>
<p>/usr/bin/mysql-zrm-restore &#8211;user=1122 &#8211;password=2233 &#8211;source-directory=/home/mybackup_dir/abcd/20081128195236<br />
check out your backup server MySQL database. <img src='http://www.fengcool.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2008%2F11%2Fbackup-mysql-to-remote-server-using-mysql-zrm%2F&amp;linkname=Backup%20MySQL%20databases%20to%20remote%20server%20using%20mysql-zrm"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2008/11/backup-mysql-to-remote-server-using-mysql-zrm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check Linux Versions &#8211; common commands part1</title>
		<link>http://www.fengcool.com/2008/03/check-linux-versions-common-commands-part1/</link>
		<comments>http://www.fengcool.com/2008/03/check-linux-versions-common-commands-part1/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 16:32:56 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux commands]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/2008/03/check-linux-version-linux-common-commands-1/</guid>
		<description><![CDATA[Linux commands to check Linux version, kernel version, php version, mysql verison and others on Linux server]]></description>
			<content:encoded><![CDATA[<ul>
<li>Check Linux Kernel version:</li>
</ul>
<p>uname -a</p>
<ul>
<li>Check Linux version</li>
</ul>
<p><span id="intelliTxt"> cat /proc/version</span></p>
<ul>
<li>Check Redhat based Linux version</li>
</ul>
<p>cat /etc/redhat-release</p>
<ul>
<li>Check PHP version on Linux server</li>
</ul>
<p>php -v</p>
<ul>
<li>Check mysql version on linux server</li>
</ul>
<p>mysql -V</p>
<ul>
<li>Check apache version on linux server</li>
</ul>
<p>httpd -v</p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2008%2F03%2Fcheck-linux-versions-common-commands-part1%2F&amp;linkname=Check%20Linux%20Versions%20%26%238211%3B%20common%20commands%20part1"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2008/03/check-linux-versions-common-commands-part1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install MySQL Community Server 5.0.45 Without Installer on Windows Vista</title>
		<link>http://www.fengcool.com/2007/10/install-mysql-community-server-5045-without-installer-on-windows-vista/</link>
		<comments>http://www.fengcool.com/2007/10/install-mysql-community-server-5045-without-installer-on-windows-vista/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 21:00:44 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/2007/10/install-mysql-community-server-5045-without-installer-on-windows-vista/</guid>
		<description><![CDATA[Step by step guide of installing MySQL 5.0.45 manually on Windows Vista]]></description>
			<content:encoded><![CDATA[<ol>
<li>Download the zip file from <a target="_blank" href="http://dev.mysql.com/downloads/mysql/5.0.html#win32">here</a>.</li>
<li>Unzip it to your d: drive. Here&#8217;s what you should get after unzipping: d:\mysql-noinstall-5.0.45-win32. Rename this folder to mysql5045. (d:\mysql5045)</li>
<li>Open folder d:\mysql5045. Copy my-small.ini and rename the copied file to my.ini.  Open my.ini using notepad. Under line &#8220;[mysqld]&#8220;, enter the following lines:basedir=D:/mysql5045<br />
datadir=D:/mysql5045/data</li>
<li>Run your command prompt as administrator. And enter folder d:\mysql5045\bin</li>
<li>Type <strong>mysqld-nt.exe &#8211;install mysql5045 &#8211;defaults-file=d:\mysql5045\my.ini</strong></li>
<li>Type <strong>net start mysql5045</strong> in command line. If you see the following, mysql 5045 is installed and running!The mysql5045 service is starting.<br />
The mysql5045 service was started successfully.</li>
<li>IMPORTANT! type <strong>mysqladmin -u root password &#8220;your-new-password&#8221;</strong>, to set a password for your root account. The default install will leave no password required for your root account.</li>
</ol>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2007%2F10%2Finstall-mysql-community-server-5045-without-installer-on-windows-vista%2F&amp;linkname=Install%20MySQL%20Community%20Server%205.0.45%20Without%20Installer%20on%20Windows%20Vista"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2007/10/install-mysql-community-server-5045-without-installer-on-windows-vista/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

