An error occurred during mysql5 decompression and installation: unknownoption bitsCN.com
An error occurred during mysql5 decompression and installation: unknown option '-D'
This phenomenon does not occur when MYSQL is installed using EXE. it only occurs when the package is used for installation and manual configuration. It is hereby recorded.
The startup command is: net start MYSQL service name
Error: 1067 unknown option '-D'
Solution: go to the registry under windows, HKEY_LOCAL_MACHINE--SYSTEM-SERVICES -- your MYSQL service name, find the option KEY is "ImagePath", I mistakenly wrote here:
D:/MySQL-Slaver/bin/mysqld-defaults-file = d:/MySQL-Slaver/my. ini MYSQL5SLAVER
Change "-defaults" to "-- defaults"
The mysqld command does not have the-d option, while MYSQL treats-D as an option if it encounters xxxx-dxxxx when parsing parameters.
For the sake of insurance, I changed the DATA directory from slaver-data to slaverData, so make sure you do not have this dirty problem.
BitsCN.com