我在windows2012上使用mysql 5.7.9-log作为服务。 然后使用.netconnector或phpmysqli连接并查询mysql 在Windows事件中获得每个查询此信息:
中止连接2481到db:' dbdb'用户:' myuser'主持人:' 127.0.0.1' (读取通信包时出错)...
但查询已成功应用 没有发生在mysql5.6
上my my.ini文件:
[mysqld]
port= 3306
basedir = "C:/KAPPS/mysql/"
tmpdir = "C:/KAPPS/mysql/tmp"
datadir = "C:/KAPPS/mysql/data"
plugin_dir = "C:/KAPPS/mysql/lib/plugin/"
server-id = 1
pid_file = "mysql.pid"
log_error = "mysql_error.log"
#bind-address=0.0.0.0 # I tried
# custom config
tmp_table_size=2G
max_heap_table_size=2G
event_scheduler=ON
wait_timeout=10000
max_allowed_packet = 10M
skip_name_resolve
group_concat_max_len=15360
slow_query_log=ON
slow_query_log_file="slow_queries.log"
# performance
innodb_buffer_pool_size = 512M
sort_buffer_size = 8M
read_rnd_buffer_size = 8M
join_buffer_size = 256M
query_cache_size = 256M
key_buffer_size=512M
innodb_buffer_pool_size = 1G
sql_mode=
有什么建议吗?
编辑:
这条my.ini线解决了我的问题:
log_error_verbosity = 1
参考this链接