Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用 gdb 调试程序,因为它随机崩溃(几天后,几个小时后......)。但是当我尝试调试它时,我的程序抛出了这些错误:“Lost connection to MySQL server”和“MySQL server has gone away”
当我在没有 gdb 的情况下运行程序时,我没有收到这些错误,那么 gdb 有什么问题?
我试图在 my.cnf 中将 max_allowed_packet 增加到 256M,但没有成功。