Home > Database > Mysql Tutorial > mysql5解压缩安装时,发生的一个错误:unknown option '-d'解_MySQL

mysql5解压缩安装时,发生的一个错误:unknown option '-d'解_MySQL

WBOY
Release: 2016-06-01 13:29:06
Original
2261 people have browsed it

bitsCN.com

mysql5解压缩安装时,发生的一个错误:unknown option '-d'解决

 

    这个现象不会发生在通过EXE方式安装MYSQL的过程中,只会发生在用压缩包进行安装,手动配置时,才会发生的错误。特此记录。 

    启动命令为:net start MYSQL服务名 

    报错:1067 unknown option '-d' 

 

    解决方法:windows下进入注册表,HKEY_LOCAL_MACHINE--SYSTEM-SERVICES--你的MYSQL服务名,找到KEY为“ImagePath”的选项,我这里错误地写成了: 

D:/MySQL/MySQL-Slaver/bin/mysqld -defaults-file=d:/MySQL/MySQL-Slaver/my.ini MYSQL5SLAVER 

 

    务必要把"-defaults"改为"--defaults" 

    mysqld指令没有-d选项,而MYSQL在解析参数时,只要碰到xxxx-dxxxx就会把-D当成选项去处理。 

 

    为了保险起见,我把DATA的目录由slaver-data改成了slaverData,确保别再出这个很狗血的问题

bitsCN.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