<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[歌声与微笑]]></title> 
<link>http://www.gsywx.com/index.php</link> 
<description><![CDATA[歌声与微笑]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[歌声与微笑]]></copyright>
<item>
<link>http://www.gsywx.com/read.php/.htm</link>
<title><![CDATA[手动安装mysql5.086的问题]]></title> 
<author>admin &lt;admin@gsywx.com&gt;</author>
<category><![CDATA[电脑类]]></category>
<pubDate>Wed, 14 Oct 2009 14:16:11 +0000</pubDate> 
<guid>http://www.gsywx.com/read.php/.htm</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我一直都喜欢用手动方式（命令行方式）安装mysql，但在mysql上一个版本和现在最新的5.086版本时，手动安装却出错，经查看服务，发现手动安装后命令行不正确，以以往的5.0x的时候也有过这个问题，所以在安装mysql后需进行修正。<br/><br/>以下mysql路径为%mysql_path%为mysql的具体路径，需改成具体路径后再进行操作。<br/><br/>修正方式为直接修改注册表中的数据以改正服务中的命令。具体方法如下：<br/><br/>mysql_path&#92;bin&#92;mysqld-nt.exe --install MySQL --defaults-file=mysql_path&#92;my.ini<br/>在安装后<br/>net start mysql<br/>会显示：<br/>mysql 服务正在启动.<br/>mysql 服务无法启动。<br/>系统出错<br/>发生系统错误 1067<br/>进程意外终止。<br/><br/>经查看服务，可执行文件路径为：<br/>%mysql_path%&#92;bin&#92;mysqld-nt.exe %mysql_path%&#92;my.ini MySQL<br/><br/>而正确的路径应该为：<br/>%mysql_path%&#92;mysql&#92;bin&#92;mysqld-nt --defaults-file=%mysql_path%&#92;mysql&#92;my.ini mysql<br/><br/>修正方法有2种：<br/>一、直接修改注册表<br/>打开HKEY_LOCAL_MACHINE&#92;SYSTEM&#92;ControlSet001&#92;Services&#92;mysql，右边ImagePath的值进行修正，数值数据为：%mysql_path%&#92;phpsetup&#92;mysql&#92;my.ini<br/>二、批处理修正<br/>reg.exe add "HKEY_LOCAL_MACHINE&#92;SYSTEM&#92;ControlSet001&#92;Services&#92;mysql" /v "ImagePath" /t REG_EXPAND_SZ /d "%mysql_path%&#92;mysql&#92;bin&#92;mysqld-nt --defaults-file="%mysql_path%&#92;phpsetup&#92;mysql&#92;my.ini" mysql" /f<br/><br/>这时候再进CMD，运行 net start mysql，会发现mysql能正常启动了。<br/><br/><br/>Tags - <a href="http://www.gsywx.com/go.php/tags/mysql%25E7%2594%25B5%25E8%2584%2591%25E7%259F%25A5%25E8%25AF%2586/" rel="tag">mysql电脑知识</a>
]]>
</description>
</item><item>
<link>http://www.gsywx.com/read.php/.htm#blogcomment</link>
<title><![CDATA[[评论] 手动安装mysql5.086的问题]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.gsywx.com/read.php/.htm#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>