I’m updating MySQL database from my TPS based app - have a browse on tps file and with a button calli (in the same thread) a window that updates MySQL table with a button. The Window procedure opens MySQL table and updates or adds a record. It all works when I open the app, MySQL records are being updated.
After some time of keeping the browse open ( browse itself does not open any MySQL tables ) calling the window updating MySQL and opening the file causes an error 37 - file not open.
Similar thing happens when I created a browse on MySQL table. It displays the table content, but when I leave it open and idle for about 10 minutes it throws an error not being able to fetch records.
Closing and reopenig the browse fixes the issue, I don’t even have to close the app itself.
Initially I thought it’s a connection_timeou issue. This MySQL database is used by a web application in php so the timeout is default, but thired to in increase it to 8 hrs, but still the same behaviour. This is my current driver string:
Driver={MySQL ODBC 5.2 ANSI Driver};Server=10.1.1.10;Database=mytest;User=mytest;Password=MyPass;Option=3 ;Connection Timeout= 28800
Looks like it only happens when connection is idle, as there is another process checking MySQL table starting every 5 minutes from another app in the tray and I get no such issues there .