Page 1 of 1

System date change problem

Posted: 21.12.2007, 10:49
by stiger
Hi!

I'm using Delphi 7, ZEOS 6 components, connects to MySQL server. I create a simple project with ZConnection and ZTable, put one button wich just do ZTable.Refresh. When I run prog its connecting to server, I push button for table refresh - all ok. Now just set system time to 2 days later - push button again - its give me a error. Any operations with table, query gives me a error after date change (but need to increase date - decrease no error). If I reconnects to server after date chage - all ok but in my project I can't reconnect. Its bug or maybee I can do something with this. Please help

Posted: 21.12.2007, 11:14
by mdaems
What's the error you get?
Where do you change system date? Server or client?
Ever tried to do that while connected using the mysql console (mysql.exe).
Why can't you reconnect in your project? You could try to add a Connection.PingServer call before the refresh.
Mark

Posted: 21.12.2007, 11:37
by stiger
I get 'Access violation read of address x00000' or sometime 'Lost connection to MySQL during query'. I have a server and client running on same PC. The same thing happens with time change but backwards and for long time period. My project needs to work all time - if I will reconnect I need to stop all work and than reconnect.

Posted: 21.12.2007, 13:53
by stiger
I also try to do the same in MyCC (MySQL Control Center). When I run query after change date in Windows - [locserv] ERROR 2013: Lost connection to MySQL server during query. As I see its MySQL server error. Its very bad bug I think. :-(

Posted: 21.12.2007, 14:01
by mdaems
Probably not a bug. In fact it's you who's causing an unexpected environment change for the server.... Try the (new) PingServer and Reconnect Connection methods before Refresh (or other database actions). Good chance it works.

Mark

Posted: 03.01.2008, 12:12
by gto