我无法更改innodb_log_file_size
变量。看来mysql服务器完全忽略了my-default.ini
中的配置。我怀疑是这种情况,因为当我想增加max_allowed_packet
值时,在文件中添加max_allowed_packet=val
行没有效果(就在我遇到max_allowed_packet
时遇到问题,不幸的是我可以& #39; t通过mysql命令设置innodb_log_file_size
。
我想知道如何在Windows中更改innodb_log_file_size
。
我尝试过的事情(并且失败了)
mysqld -u root -p --innodb_log_file_size=1745337664
发出以下错误2015-01-16 14:21:57 0 [警告] TIMESTAMP隐式DEFAULT 值已弃用。请使用--explicit_defaults_for_timestamp 服务器选项(有关详细信息,请参阅文档)。
SET GLOBAL innodb_log_file_size=#
原来是一个只读变量我在这里复制了my-default.ini
的内容。我在使用Mysql Server 5.6时出现此问题,并且它在win 7 64位上运行。
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
max_allowed_packet=1G
# 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
innodb_log_file_size = 1G
# 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 = .....
# datadir = .....
# port = .....
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES