Mysql 如何设置Innodb_日志_文件_大小
更改Mysql 如何设置Innodb_日志_文件_大小,mysql,innodb,Mysql,Innodb,更改innodb\u log\u file\u大小变量时遇到问题。mysql服务器似乎完全忽略了my default.ini中的配置。我怀疑是这样的,因为当我想增加max\u allowed\u packet值时,向文件中添加max\u allowed\u packet=val行没有效果(那是在我遇到max\u allowed\u packet问题时,不幸的是我无法通过mysql命令设置innodb\u log\u file\u文件大小) 我想知道如何在windows中更改innodb日志文件大
innodb\u log\u file\u大小
变量时遇到问题。mysql服务器似乎完全忽略了my default.ini
中的配置。我怀疑是这样的,因为当我想增加max\u allowed\u packet
值时,向文件中添加max\u allowed\u packet=val
行没有效果(那是在我遇到max\u allowed\u packet
问题时,不幸的是我无法通过mysql命令设置innodb\u log\u file\u文件大小
)
我想知道如何在windows中更改innodb日志文件大小
我尝试过(但失败了)的事情
给出了以下错误mysqld-u root-p--innodb_log_file_size=1745337664
结果是一个只读变量设置全局innodb_日志_文件_大小=#
my default.ini
的内容。我在Mysql服务器5.6上遇到了这个问题,它在Win7 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
它不使用
my default.ini
:它使用my.ini
。我的安装目录(默认安装目录)中没有my.ini。EJP,您的评论有点帮助。我将该文件重命名为my.ini,它成功了。谢谢你激发了这种想法。