2023年12月28日

蛋疼的mysql_ping()以及MYSQL_OPT_RECONNECT(转)

摘要: From: https://www.felix021.com/blog/read.php?2102 昨天@Zind同学找到我之前的一篇blog(已经修改),里面提到了mysql_ping和MYSQL_OPT_RECONNECT的一些事情。之所以写那篇blog,是因为去年写的一些代码遇到了“2006: 阅读全文

posted @ 2023-12-28 14:18 xihong 阅读(40) 评论(0) 推荐(0) 编辑

mysql5.7 wait_timeout (转)

摘要: 参考:https://blog.csdn.net/ivory_town1/article/details/77702357 1.修改参数配置文件 vi /etc/my.cnf [mysqld] wait_timeout = 28800 interactive_timeout = 28800 #增加以 阅读全文

posted @ 2023-12-28 13:39 xihong 阅读(19) 评论(0) 推荐(0) 编辑

std::max、std::min error C2589: “(”:“::”右边的非法标记,error C2059: 语法错误:“::” (转)

摘要: 个人采用方案三解决问题。 在VC++种同时包含头文件#include <windows.h>和#include <algorithm>后就会出现无法正常使用std标准库中的min和max模板函数,经过查阅发现这是因为在Windows.h种也有min和max的定义,这样就导致了algorithm中的m 阅读全文

posted @ 2023-12-28 12:07 xihong 阅读(102) 评论(0) 推荐(0) 编辑

E1097 未知特性 “no_init_all“(转)

摘要: 在我使用最新(2019.5.12)的VS2019(版本号16.0.3)时,编译器弹出了如标题所示错误,找不到"no_init_all"的attribute。错误源头在winnt.h这一系统头文件中。经过比对,找到了位于Microsoft Visual Studio Developer Communi 阅读全文

posted @ 2023-12-28 11:21 xihong 阅读(195) 评论(0) 推荐(0) 编辑

导航