Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 3)更改MySQL数据库存放目录

[复制链接]
qsbwoai 发表于 2013-4-5 10:45:02 | 显示全部楼层 |阅读模式
这几个我始终没有明白,到底是怎么操作吃啊?请教


打开cmd命令提示符窗口,输入命令:net stop mysql 停止MySQL服务运行;


打开X:\Server_Core\MySQL\my.ini
找到:
Datadir = “X:\Server_Core\MySQL\data”
修改为:
Datadir = “X:\Database”
X:\Server_Core\MySQL\data 文件夹复制到X:\,并重命名X:\Database
打开cmd命令提示符窗口,
输入命令:net start mysql
启动MySQL服务。
重新测试MySQL是否工作正常。

4)移动LibMySQL动态链接库到系统目录
X:\Server_Core\MySQL\bin\libmySQL.dll文件复制到 Y:\Windows\System32目录下。



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
可爱的轩轩 发表于 2013-4-5 11:05:05 | 显示全部楼层
我晕 还有用DOS控制数据库的
回复

使用道具 举报

 楼主| qsbwoai 发表于 2013-4-5 11:22:06 | 显示全部楼层
这些我找了老半天也没有懂什么意思、
安装 PHP1、解压缩解压缩下载的 php-5.2.8-Win32.zip 文件,并将其复制到:

X:\Server_Core\PHP ;

2、修改 php.ini进入 X:\Server_Core\PHP 文件夹,将 php.ini-dist 重命名为 php.ini ;

打开 php.ini文件,找到:

extension_dir= "./"

将其改为:

extension_dir= "X:\Server_Core\PHP\ext"

找到:Windows Extensions

在Windows Extensions下方的动态模块配置中,需要打开以下模块支持:(去掉模块配置每行前面的分号即可)

php_gd2.dll

php_mbstring.dll

php_mcrypt.dll

php_mhash.dll

php_ming.dll

php_mysql.dll

php_openssl.dll

php_sockets.dll

php_xmlrpc.dll

php_zip.dll

找到:

disable_functions=

改为:

disable_functions=passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server

保存 php.ini 文件,并将其复制到 Y:\Windows


回复

使用道具 举报

4947046 发表于 2013-4-7 09:14:54 | 显示全部楼层
好东西!
回复

使用道具 举报

4947046 发表于 2013-4-7 18:38:31 | 显示全部楼层
不错,支持
回复

使用道具 举报

4947046 发表于 2013-4-8 02:24:36 | 显示全部楼层
飘过~看贴回贴是美德
回复

使用道具 举报

YUYU114 发表于 2013-4-8 04:47:38 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

4947046 发表于 2013-4-12 15:35:33 | 显示全部楼层
我几天也没出一个像样的
回复

使用道具 举报

1263104 发表于 2013-4-18 23:43:23 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-21 16:40 , Processed in 0.135950 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表