<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[linux下如何重启mysql]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[服务器技术]]></category>
<pubDate>Fri, 10 Apr 2009 05:29:15 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	好多人在网上问linux怎么重启mysql，回答也是各式各样的。mysql并没有像apache那样可以通过/usr/local/apache/bin/apachetl restart这样来重启。好多提到的都是killall mysqld ，杀掉所有mysql进程，然后重新启动mysql，这样容易造成mysql数据库的损坏，特别是在应用的情况下。mysql其实是可以作为服务来重启的。<br/>方法如下：<br/>源码目录下/support-files/mysql.server 拷贝到/etc/rc.d/init.d/下。然后把启动mysql命令添加到/etc/rc.d/rc.local。这样启动以后，mysql就自动启动了。运行过程中，就可以用server mysql restart来运行。<br/><br/>Tags - <a href="http://www.dzhope.com/tags/linux/" rel="tag">linux</a> , <a href="http://www.dzhope.com/tags/mysql/" rel="tag">mysql</a> , <a href="http://www.dzhope.com/tags/%25E9%2587%258D%25E5%2590%25AFmysql/" rel="tag">重启mysql</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] linux下如何重启mysql]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>