An error occurred during mysql5 decompression and installation: unknownoption '-d' unknow_mysql

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.