Re: Not consisent result about mysql_stmt_execute and mysql_stmt_errno.
Posted by: hello okay
Date: July 28, 2022 08:39AM

Step like this:
1) mysql 8.0.25 client to connect mysql 8.0.18 server.
2) vi /etc/my.cnf, add wait_timeout=60 in mysqld and restart mysql, the purpose is to decrease mysql connection valid time.
3) use script to trigger executing mysql command every two minutes, the result of mysql_stmt_execute may return 1 and mysql_stmt_errno return 0.

Btw, my solution is when mysql_stmt_errno return 0, reconnect mysql again.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Not consisent result about mysql_stmt_execute and mysql_stmt_errno.
53
July 28, 2022 08:39AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.