我的应用程序日志显示"准备好的声明需要重新准备"运行mysqltuner之后(打扰版本1.1和1.4)。一旦我运行"刷新表格;",错误就会消失。我已经在线查看了大多数事情提到了与此错误有关的mysqldump,但我没有运行mysqldump。事实上,并没有真正做任何事情。所以有一些与此错误相关的问题:
my.conf:
[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
# NOTE: server did not like over 2GB
innodb_buffer_pool_size=1GB
innodb_log_buffer_size=9M
#
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
#
# 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
join_buffer_size = 2M
sort_buffer_size = 2M
read_rnd_buffer_size = 2M
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
lower_case_table_names=1
character-set-server=utf8
query_cache_size=100M
query_cache_type=1
slow_query_log=ON
query_cache_limit = 10M
table_open_cache=164000
open_files_limit=328000
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
告诉我您是否需要其他信息。
编辑03/10/2015: 我只是做了以下没有问题:
所以如果我运行mysqltuner,我只会遇到问题。我不知道的是
感谢。
答案 0 :(得分:0)
mysqltuner在代码中根本没有运行任何FLUSH命令。</ p>
我在最后的1.5.1版本中检查了它。