You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to sync some data from mysql to sqlserver,and sql server may busy,it will take some time and i pause mysql connection,when time span take about 60s and then resume the mysql connection, an error occur, Error: Connection lost: The server closed the connection.,mysql server close the connection,how can i resolve the problem?
i can't reconnect mysql,because i want to deal the recordset continue;
The text was updated successfully, but these errors were encountered:
The problem is that your server is currently configured to close the connection quickly. You can do two things to help solve this:
Don't call .pause() and instead buffer up all the results yourself. This will ensure the results flow from the server instead of keeping the connection idle. The downside is you'll need to fit all the results in memory on your Node.js process.
Adjust the timeout on your MySQL server settings. You'll want to tweak the wait_timeout setting.
i want to sync some data from mysql to sqlserver,and sql server may busy,it will take some time and i pause mysql connection,when time span take about 60s and then resume the mysql connection, an error occur,
Error: Connection lost: The server closed the connection.
,mysql server close the connection,how can i resolve the problem?i can't reconnect mysql,because i want to deal the recordset continue;
The text was updated successfully, but these errors were encountered: