NET HELPMSG 3534mysql
問題:在安裝MqSql的5.7.12版本時,在註冊服務mysqld install MySQL --defaults-file="my-default.ini路徑"後執行net start mysql,啓動MySql失敗。sql
根源:那是由於5.7版本後沒有舊版的data目錄了,須要執行mysqld --initialize命令初始化下,手動生成data目錄。官方解釋爲:orm
As of MySQL 5.7.6, the Zip Archive no longer includes a data directory. To initialize a MySQL installation by creating the data directory and populating the tables in the mysql system database, initialize MySQL using either --initialize or --initialize-insecure. For additional information, see Section 2.10.1.1, 「Initializing the Data Directory Using mysqld」.ip
解決:rem
1.移除已註冊服務:mysqld removeit
2.初始化:mysqld --initialize
3.註冊服務:mysqld -install
4.啓動服務:net start mysqlio
而後就能夠正常啓動了.table