Home > Database > Mysql Tutorial > 如何更改MYSQL的数据库文件路径_MySQL

如何更改MYSQL的数据库文件路径_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:49:12
Original
1058 people have browsed it

bitsCN.com

首先,停止MySQL的服务。开始--运行--services.msc--找到MySql服务,停止

mysql的默认安装位置:

C:/Program Files/MySQL/MySQL Server 5.0

然后,修改my.ini文件。进入MySQL的安装目录,找到my.ini,修改datadir的值。

 #Path to the database root
datadir="D:/Program Files/MySQL/MySQL Server 5.0/Data/" -- 修改这个值即可

最后,启动MySQL服务。开始--运行--services.msc--找到MySql服务,启动

bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template