<?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>系统运维 &#187; 修改MySQL数据库目录</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%E4%BF%AE%E6%94%B9mysql%E6%95%B0%E6%8D%AE%E5%BA%93%E7%9B%AE%E5%BD%95/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows Server 2008 R2下修改MySQL 5.5数据库目录</title>
		<link>https://www.osyunwei.com/archives/5150.html</link>
		<comments>https://www.osyunwei.com/archives/5150.html#comments</comments>
		<pubDate>Thu, 16 Aug 2012 05:54:19 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[修改MySQL数据库目录]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=5150</guid>
		<description><![CDATA[说明： 操作系统：Windows Server 2008 R2 MySQL版本：5.5.25a MySQL程序安装目录：D:\Program Files\MySQL\MySQL Server 5.5 MySQL数据库默认目录：C:\ProgramData\MySQL\MySQL Server 5.5\data\ 需求：修改MySQL数据库目录为D:\Program Files\MySQL\MySQL Server 5.5\data 具体操作： 一、停止MySQL 开始-cmd net stop mysql55 二、复制原来数据库目录到新目录 1、备份D:\Program Files\MySQL\MySQL Server 5.5\中的data目录为data-bak 2、复制C:\ProgramData\MySQL\MySQL Server 5.5\中的data目录到 D:\Program Files\MySQL\MySQL Server 5.5\目录下 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链接 三、修改MySQL配置文件 1、用记事本打开C:\ProgramData\MySQL\MySQL Server 5.5\data\目录下的my.ini 找到datadir="C:\ProgramData\MySQL\MySQL Server 5.5\data" 在前面加#注释掉 在下面添加一行 datadir="D:\Program Files\MySQL\MySQL Server 5.5\data" 修改完成后，保存退出。 2、复制C:\Documents and Settings\All [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/5150.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/5150.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
