- 切換到 MySQL/bin 目錄
>> E:
>> cd MySQL/bin
- 檢視 mysqld 服務對應的命令
mysqld --verbose --help (瞭解)
(回車後、螢幕上會捲動大量的命令)
--initialize Create the default database and exit. Create a super user
with a random expired password and store it into the log.
--initialize-insecure
Create the default database and exit. Create a super user
with empty password.
mysqld --initialize-insecure --user=mysql