2017-08-09 4 views
0

私はWindows用のmysql-5.7.19をダウンロードしました。私はmy-default.ini(設定ファイル)以外のすべての予想されるフォルダとファイルを持っています。次のステップとして、my-default.iniの内容をコピーしてmy.iniファイルを作成するよう求められますが、私の場合はmy-default.iniがありません。MySQLにmy-default.iniがありませんダウンロード

答えて

0

iniファイルをお持ちでない場合は、.cnfファイルを探してください。あなたはどちらか持っていない場合は、ここでuse one of the examples here.

に選ぶことができるファイルの例です:あなたは[mysqld]port=3307port=3306を変更するが、それを変更しない場合は、

[client] 
# Which port the client should use as a default. 
# this means if you're connecting to the local machine, then you can omit 
# the --port parameter 
port=3306 

[mysqld] 
# Which port you're using. You'll need to write 
# mysql --port=3360 if you're specifying the port 
port=3306 
# These two have to do with size of data allowed in the system 
key_buffer_size=16M 
max_allowed_packet=8M 

[mysqldump] 
# The style of mysqldump to use as default 
quick 

だけ明確にするため[mysql]より小さい場合は、常にmysql --port=3307を使用する必要があります。一方、を両方とも変更する場合は、port=3306からport=3307までのポートパラメータを省略できます。

関連する問題