<?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>雨无形的BLOG &#187; mysql</title>
	<atom:link href="http://www.yuwuxing.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuwuxing.com</link>
	<description>关注互联网发展</description>
	<lastBuildDate>Fri, 23 Dec 2011 04:00:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>windows系统下的mysql定时备份</title>
		<link>http://www.yuwuxing.com/windows-mysql-backup/</link>
		<comments>http://www.yuwuxing.com/windows-mysql-backup/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 13:17:27 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[备份]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=178</guid>
		<description><![CDATA[今天帮别人恢复了论坛，为了避免以后再次发生这种情况，还是每天备份一下的好，就写了一个批处理加入到计划任务里面每天执行一次就行了。 准备工作： 1.安装winrar，这个应该基本上都装了吧，我是装在c:\program files\winra 2.创建一个databak文件夹，我是在F:\databak下 然后将下面的文件存成一个backup.cmd net stop mysql C:\progra~1\WinRAR\winrar a -ag -k -r -s f:\databak\dsbclub.rar d:\mysql\data\db1name\ C:\progra~1\WinRAR\winrar a -ag -k -r -s f:\databak\dsbclub.rar d:\mysql\data\db2name\ …… C:\progra~1\WinRAR\winrar a -ag -k -r -s f:\databak\dsbclub.rar d:\mysql\data\dbnname\ xcopy f:\databak\*.* f:\databak\%date:~0,10%\ /y del f:\databak\*.* /q net start mysql 然后用计划任务设置好每天凌晨备份即可，此方法的缺点是需要暂停mysql，所以最好在凌晨的时候执行<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="centos 下 rpm方式安装mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos 下 rpm方式安装mysql</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP学习之一 sql语言笔记" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP学习之一 sql语言笔记</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="windows 快速批处理更换IP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-change-ip-cmd%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">windows 快速批处理更换IP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="51凤凰游记" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fphoenix-travel-notes%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/19/2187450.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">51凤凰游记</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="《网页设计技巧》系列之一 浅谈文本排版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Ftext-typeset-of-web-design%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/19/2187512.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">《网页设计技巧》系列之一 浅谈文本排版</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天帮别人恢复了论坛，为了避免以后再次发生这种情况，还是每天备份一下的好，就写了一个批处理加入到计划任务里面每天执行一次就行了。</p>
<p>准备工作：</p>
<p>1.安装winrar，这个应该基本上都装了吧，我是装在c:\program files\winra</p>
<p>2.创建一个databak文件夹，我是在F:\databak下</p>
<p>然后将下面的文件存成一个backup.cmd</p>
<blockquote><p>net stop mysql<br />
C:\progra~1\WinRAR\winrar a -ag -k -r -s f:\databak\dsbclub.rar d:\mysql\data\db1name\<br />
C:\progra~1\WinRAR\winrar a -ag -k -r -s f:\databak\dsbclub.rar d:\mysql\data\db2name\<br />
……<br />
C:\progra~1\WinRAR\winrar a -ag -k -r -s f:\databak\dsbclub.rar d:\mysql\data\dbnname\<br />
xcopy f:\databak\*.* f:\databak\%date:~0,10%\ /y<br />
del f:\databak\*.* /q<br />
net start mysql</p></blockquote>
<p>然后用计划任务设置好每天凌晨备份即可，此方法的缺点是需要暂停mysql，所以最好在凌晨的时候执行</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="centos 下 rpm方式安装mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos 下 rpm方式安装mysql</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP学习之一 sql语言笔记" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP学习之一 sql语言笔记</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="windows 快速批处理更换IP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-change-ip-cmd%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">windows 快速批处理更换IP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="关于表格的学习笔记" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Ftable-study-note%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/19/2187238.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">关于表格的学习笔记</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="flash中用attachMovie复制元件置于舞台的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/19/2187486.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">flash中用attachMovie复制元件置于舞台的方法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/windows-mysql-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos 下 rpm方式安装mysql</title>
		<link>http://www.yuwuxing.com/centos-rpm-setup-mysql/</link>
		<comments>http://www.yuwuxing.com/centos-rpm-setup-mysql/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 16:59:29 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[服务器相关]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=52</guid>
		<description><![CDATA[<p>centos/linux下面用rpm方法安装mysql5.1</p><p>首先还是要下载，因为我是64位的linux，所以下载的是64bit的版本，需要下三个文件server和</p><blockquote><p>64bit mysql 下载地址<br />MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm<br /><a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/">http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/</a><br />...</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">windows系统下的mysql定时备份</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fsetup-openssl-in-centos%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">在centos 5.2 linux 下安装openssl</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP学习之一 sql语言笔记</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Flinux-zend-activation%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于linux下安装zend不能激活的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fa-good-album-zenphoto-install%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个优秀的相册程序zenphoto安装记</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>centos/linux下面用rpm方法安装mysql5.1</p>
<p>首先还是要下载，因为我是64位的linux，所以下载的是64bit的版本，需要下三个文件server和</p>
<blockquote><p>64bit mysql 下载地址<br />
MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm<br />
<a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/">http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/</a><br />
MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm<br />
<a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.stu.edu.tw/pub/Unix/Database/Mysql/">http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.stu.edu.tw/pub/Unix/Database/Mysql/</a><br />
MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm<br />
<a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.mirror.tw/pub/mysql/">http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.mirror.tw/pub/mysql/</a></p></blockquote>
<p>32bit和更多下载镜像，请自己上<a href="http://www.mysql.com/">www.mysql.com</a>下载</p>
<p>这里预设下载目录为/usr/local/src/<br />
依次执行以下命令<br />
#下载所需rpm包</p>
<blockquote><p>cd /usr/local/src/<br />
wget <a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/">http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://mysql.cdpa.nsysu.edu.tw/Unix/Database/MySQL/</a><br />
wget <a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.stu.edu.tw/pub/Unix/Database/Mysql/">http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.stu.edu.tw/pub/Unix/Database/Mysql/</a><br />
wget <a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.mirror.tw/pub/mysql/">http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm/from/ftp://ftp.mirror.tw/pub/mysql/</a></p></blockquote>
<p>#开始安装</p>
<blockquote><p>rpm -ivh MySQL-server-community-5.1.36-0.rhel5.x86_64.rpm MySQL-client-community-5.1.36-0.rhel5.x86_64.rpm MySQL-devel-community-5.1.36-0.rhel5.x86_64.rpm</p></blockquote>
<p>然后运行一下mysql看是否安装成功<br />
mysql<br />
提示：</p>
<blockquote><p>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 8<br />
Server version: 5.1.36-community-log MySQL Community Server (GPL)<br />
Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the current input statement.<br />
mysql&gt;</p></blockquote>
<p>即为安装成功</p>
<p>修改登录密码：</p>
<blockquote><p>mysqladmin -u root password &#8216;new-password&#8217;<br />
格式：mysqladmin -u用户名 -p旧密码 password 新密码</p></blockquote>
<p>再次登录</p>
<blockquote><p>mysql -u root -p</p></blockquote>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">windows系统下的mysql定时备份</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fsetup-openssl-in-centos%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">在centos 5.2 linux 下安装openssl</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP学习之一 sql语言笔记</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Flinux-zend-activation%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于linux下安装zend不能激活的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fa-good-album-zenphoto-install%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个优秀的相册程序zenphoto安装记</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/centos-rpm-setup-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP学习之一 sql语言笔记</title>
		<link>http://www.yuwuxing.com/sql-note-part1/</link>
		<comments>http://www.yuwuxing.com/sql-note-part1/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 12:42:11 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[服务器相关]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=13</guid>
		<description><![CDATA[<p>sql语言学习笔记（以MYSQL为例），增删改查</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">windows系统下的mysql定时备份</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">centos 下 rpm方式安装mysql</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fa-good-album-zenphoto-install%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个优秀的相册程序zenphoto安装记</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fjava-be-defeated-by-php-in-web-develop%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Java在Web开发语言上败给了PHP(ZT)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Ftable-study-note%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于表格的学习笔记</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>mysql -h localhost -u username -p //登录mysql数据库<br />create database dbname;//创建数据库<br />insert into 表名 (字段1,字段2,字段3,&#8230;) values (数据1,数据2,数据3,&#8230;);<br />select * from 表名 where 条件;<br />SELECT * FROM `customers` WHERE name like (&quot;%mi%&quot;);<br />select orders.orderid, orders.amount, orders.date from customers, orders where customers.name = &#8216;Julie Smith&#8217; and customers.customerid = orders.customerid;<br />delete from 表名 where 条件；<br />update 表名 set 表达式（如 字段=&ldquo;值&rdquo;） where 条件；</p>
<p>php数据库链接<br />@ $db = new mysqli(&#8216;localhost&#8217;, &#8216;用户名&#8217;, &#8216;密码&#8217;, &#8216;数据库&#8217;);</p>
<p>php执行SQL语句<br />$query = &quot;sql语句&quot;; <br />$result = $db-&gt;query($query);</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fwindows-mysql-backup%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">windows系统下的mysql定时备份</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fcentos-rpm-setup-mysql%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">centos 下 rpm方式安装mysql</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fa-good-album-zenphoto-install%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一个优秀的相册程序zenphoto安装记</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fjava-be-defeated-by-php-in-web-develop%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Java在Web开发语言上败给了PHP(ZT)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Ftable-study-note%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fsql-note-part1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于表格的学习笔记</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/sql-note-part1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

