Windowsの下でMySQLを起動するように構成し、サービスが起動できないサービスはエラーを報告していません.

1857 ワード

1、プロファイル
以下の内容をルートディレクトリのmyに書き込む.ini(my_default.ini)ファイルには、このファイルを作成できません.
[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
basedir = "C:\Program Files\mysql-5.7.17-winx64"
datadir = "C:\Program Files\mysql-5.7.17-winx64\data"
character-set-server = utf8
port = 3306

2、ここを重点的に見る
ここでは、自分でdataフォルダを作成する必要はありません.初期化されると、コマンドライン(管理者ID):(MySQLにインストールされているbinディレクトリの下に入る)1、mysqld --initialize(ディレクトリの下にdataフォルダがあることを確認し、削除すればよい)2、net start mysqlが作成されます.
起動成功