Lost Connection after 8 hour no activity on my PC
-
Daniel Fagnan
- Posts: 58
- Joined: Fri 13 Oct 2006 00:08
Lost Connection after 8 hour no activity on my PC
I Used a touch screen Pc with a connection to mySQL server
After long time of inactivity 6 hour and more
The first guy who try to punch i lost this transaction the other guy is Ok
I think after long time I should reconnect this exactly the same then the first guy, this guy reconnect the connection to my Sql and other guy
arrive and the connection is Ok.
How to be alert for the PC never lost connection to SQL Server
I want then the PC connection was up
After long time of inactivity 6 hour and more
The first guy who try to punch i lost this transaction the other guy is Ok
I think after long time I should reconnect this exactly the same then the first guy, this guy reconnect the connection to my Sql and other guy
arrive and the connection is Ok.
How to be alert for the PC never lost connection to SQL Server
I want then the PC connection was up
-
swierzbicki
- Posts: 451
- Joined: Wed 19 Jan 2005 09:59
-
eduardosic
- Posts: 387
- Joined: Fri 18 Nov 2005 00:26
- Location: Brazil
my.ini
try increase value of variables in my.iniswierzbicki wrote:Create a thread that will ping the server each 20 sec
connect_timeout = 31536000
interactive_timeout = 31536000
wait_timeout = 31536000
net_read_timeout = 31536000
net_write_timeout = 31536000
slave_net_timeout = 31536000
max_connections = 31536000
max_user_connections = 31536000
look in mySQL help for this variables.
-
swierzbicki
- Posts: 451
- Joined: Wed 19 Jan 2005 09:59
-
eduardosic
- Posts: 387
- Joined: Fri 18 Nov 2005 00:26
- Location: Brazil
no...
I find that he is not dangerous, when the connection is closed mysql executes one automatically rollback if transactions are active.swierzbicki wrote:Hi Edoardosic,
Would it not be "dangerous" to increase the values ? For example what will happens if you lost your connection and that a transaction / lock are active ?
Thank you !
-
eduardosic
- Posts: 387
- Joined: Fri 18 Nov 2005 00:26
- Location: Brazil
Disconnected Model, very very Good.
Disconnected Model is a very important tecnology, congratulations Antaeus.Antaeus wrote:In order to avoid wasting server resourses when the client is inactive for a long time, you can use the Disconnected Model of MyDAC 5. It allows disconnecting automatically after an interaction to the server is finished.
-
Daniel Fagnan
- Posts: 58
- Joined: Fri 13 Oct 2006 00:08
With Ping in thread all is Ok
If Ping at 20 sec. all is Ok
Thank you
But the disconnect model of version 5.0 should be better! Why?
What's is the disconnect model someone can refer me to
explication of disconnect model and why many people wait after this features lot of people talk about it in this forum.
Thank you
But the disconnect model of version 5.0 should be better! Why?
What's is the disconnect model someone can refer me to
explication of disconnect model and why many people wait after this features lot of people talk about it in this forum.