Home > Database > Mysql Tutorial > Wamp2.5 64bit,无法修改MySQL datadir位置_MySQL

Wamp2.5 64bit,无法修改MySQL datadir位置_MySQL

WBOY
Release: 2016-06-01 13:07:55
Original
989 people have browsed it

今天偶然想到去更新一下机子里面PHP的版本,然后重新去wamp官网下载了WAMP(wamp 64  Apache : 2.4.9 MySQL : 5.6.17 PHP : 5.5.12 PHPMyAdmin : 4.1.14 SqlBuddy : 1.3.3 XDebug : 2.2.5)。

安装之后修改 D:/wamp/bin/mysql/mysql5.6.17/my.ini,发现修改了datadir目录无法生效,感觉想写死在程序里面一样。

重新测试:

将D:/wamp/bin/mysql/mysql5.6.17/data 复制到 D:/wamp/bin/mysql/mysql5.6.17/data2

my.ini中将默认的 datadir=d:/wamp/bin/mysql/mysql5.6.17/data 改成 datadir=d:/wamp/bin/mysql/mysql5.6.17/data2,可不管怎么改,重启之后wamp的mysql的datadir地址仍旧是 d:/wamp/bin/mysql/mysql5.6.17/data,如果我将 d:/wamp/bin/mysql/mysql5.6.17/data 这个目录删除,那么就无法重启。

我以前每次下载wamp都非常方便修改datadir的,改这个datadir参数重启就可以的

,但是今天下载来的却怎么修改都无法改动,固定了一样。

现在尚未解决,如果您知道这个的解决方法,请告诉我一下default7#zbphp.com

source:php.cn
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