一.修改data库文件地址
1.编辑mysql中的my.ini把里面的datadir改为你现在的库地址
datadir="C:/Users/Administrator/iCloud/data"
2.重启mysql服务
二.修改www默认文件路径
说明:”C:/Users/Administrator/iCloud/www”为替换后的www位置,我这里以其
为例
1.修改D:\wamp\scripts中的config.inc.php文件
‘\$wwwDir = $c_installDir.'C:/Users/Administrator/iCloud/www';
2.修改D:\wamp\bin\apache\apache2.4.18\conf中的httpd.conf文件
DocumentRoot "C:/Users/Administrator/iCloud/www/"
<Directory "C:/Users/Administrator/iCloud/www/">
3.修改wampmanager.ini(大概379行)
Type: item; Caption: "www directory"; Action: shellexecute; FileName: "C:/Users/Administrator/iCloud/www"; Glyph: 2
4.修改wampmanager.tpl(大概148行)
Type: item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "C:/Users/Administrator/iCloud/www"; Glyph: 2
5.修改D:\wamp\bin\apache\apache2.4.18\conf\extra里面的httpd-vhosts.conf文件
DocumentRoot C:/Users/Administrator/iCloud/www
<Directory "C:/Users/Administrator/iCloud/www">
6.重启wamp