1,下载mysql:http://download.mysql.cn/ 文件名:mysql-noinstall-5.0.22(win32) 2.加压缩导任何一个目录,最好目录名称不要有空格; 例如:D:\DevelopTools\mysql-5.0.22-win32 3,在mysql-5.0.22-win32 目录下新建一个my.ini,拷贝my-small.ini代码至my.ini;修改后如下:
4,然后编写启动脚本;
停止脚本
posted on 2008-08-03 11:21 空白 阅读(3656) 评论(3) 编辑 收藏 所属分类: DataBase
靠 没验证过就不要贴出来 纯粹误导人。 害我配了很久都没成功basedir=D:\DevelopTools\mysql-5.0.22-win32# 设置mysql数据库的数据的存放目录,必须是data,或者是\\xxx\data datadir=D:\DevelopTools\mysql-5.0.22-win32\data这里应该是basedir=D:\\DevelopTools\\mysql-5.0.22-win32 回复 更多评论
@lwcaly 没有验证的东西我是不会贴出来的,我自己在测试安装过程正常使用,不信可以远程登录上来让你看; 您的路径为何要双\\,难道转义字符? 不要没有教养、乱咬人,有能力就不到处找帖子配置了; 回复 更多评论
手册中的: An option file can be created and modified with any text editor, such as Notepad. For example, if MySQL is installed in E:\mysql and the data directory is in E:\mydata\data, you can create an option file containing a [mysqld] section to specify values for the basedir and datadir options: [mysqld] # set basedir to your installation path basedir=E:/mysql # set datadir to the location of your data directory datadir=E:/mydata/data Note that Windows path names are specified in option files using (forward) slashes rather than backslashes. If you do use backslashes, you must double them: [mysqld] # set basedir to your installation path basedir=E:\\mysql # set datadir to the location of your data directory datadir=E:\\mydata\\data 回复 更多评论
Powered by: BlogJava Copyright © 空白