简体   繁体   中英

How do you prevent an insert statement timing out?

I have a page where I have cleared the white space but have a feeling that things are not working correctly because it times out. Any solution on how to prevent this.

Edit my.cnf (the MySQL configuration file).

 vi /etc/my.cnf

Locate the timeout configuration and adjust it to fit your server. ex:

wait_timeout = 28800
interactive_timeout = 28800

restart server

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM