有人知道mysql的便携版本吗?
我知道xampp,但它是PHP和Apache一起提供的
有人知道如何隔离mysql吗?
发布于 2012-12-07 02:19:27
您可以下载MySQL软件包版本,并对my.ini
文件中的目录进行一些小的更改,以使用相对路径而不是绝对路径。然后,您可以直接运行服务器,而不必安装或使用Windows服务。
.zip
文件(而不是.msi
,不过你可以得到.msi
并使用7Zip或Orca来解压文件)。bin
和share
目录(实际上,在bin
中,运行server).my.ini
将basedir
和datadir
路径更改为相对路径实际上只需要mysqld.exe
作为绝对最小)。例如:basedir="..“datadir="/MySQLdb"
mysqld --bootstrap
--skip-grant-tables
开关使其运行):mysqld
- To avoid the server being run in the current command-prompt, you can use the following to have it run in its own console which should disappear once it is running:
启动mysqld
-如果出现错误,请删除日志文件(例如logs\ib_logfile*
),然后重新运行。
发布于 2009-12-05 13:12:32
我不这么认为,如果不指望XAMPP的话。您不需要使用PHP或Apache,只需从.exe文件中运行mysql
发布于 2020-09-03 22:06:34
在https://sourceforge.net/projects/mysql-server-portable/上创建了便携配置
您应该将my.cnf或my.ini放在与data目录不同的目录中。
然后,您需要初始化您的便携版本,
"\mysql-5.7.30-winx64\bin\mysqld" --defaults-file="\mysql-5.7.30-winx64\config\my.ini" --standalone --explicit_defaults_for_timestamp --initialize
然后你就可以启动你的便携版本了
"\mysql-5.7.30-winx64\bin\mysqld" --defaults-file="\mysql-5.7.30-winx64\config\my.ini" --standalone --explicit_defaults_for_timestamp
https://stackoverflow.com/questions/1851174
复制相似问题