forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › Reconnect After Connection Timeout?
- This topic is empty.
-
AuthorPosts
-
-
May 13, 2011 at 4:53 pm #12330smineParticipant
hi. we had a replication problem yesterday. our replication environment runs the same query on the slave as the master. we depend on the default database to be set (USE database_name) and adding the database name to the UPDATE command generated by SQLyog (after modifying data in the Results Grid) is not sufficient for replication to work.
yesterday replication failed. my initial connection to the server does show SQLyog issuing a USE statement, but my UPDATE statement was not replicated. we are guessing that is because my connection was idle for 4 hours and the session timed out (timeout is set to one hour), then SQLyog nicely reestablished the connection but forgot the default database.
that is just a guess. is that possible? if so, would it be possible to have SQLyog restore the session to the same state it was previously?
p.s. i am not a MySQL replication expert and and only passing along information that someone else told me. if it is misinformed, i apologize.
-
May 14, 2011 at 7:31 am #32235peterlaursenParticipant
“we depend on … adding the database name to the UPDATE command generated by SQLyog”. Why if a use statement was generated? Does replication fail to *use the USE statement* (on slave)?
I am sorry but I do not understand.
-
May 16, 2011 at 7:44 am #32236peterlaursenParticipant
Is it same problem as discussed here: http://www.webyog.com/forums/index.php?showtopic=5473
Do you use 'binlog_ignore' in the replication setup for instance?
-
May 18, 2011 at 5:54 pm #32237smineParticipant
haha, you edited my comments too much! 🙂
'peterlaursen' wrote:“we depend on … adding the database name to the UPDATE command generated by SQLyog”. Why if a use statement was generated? Does replication fail to *use the USE statement* (on slave)?
here is my original quote, with irrelevant text struck out
'smine' wrote:… we depend on the default database to be set (USE database_name)
andadding the database name to the UPDATE commandgenerated by SQLyog (after modifying data in the Results Grid)is not sufficient for replication to work. …you are correct that SQLyog issues a USE command. it also prefixes the database_name to the UPDATE comand which is why i mentioned it. whether the database name is in the UPDATE or not in the UPDATE doesn't matter, we expect the USE command to set the default database.
but that doesn't matter, because yes, i believe the issue we are seeing is the same as http://www.webyog.co…?showtopic=5473. i do not know if we have 'binlog_ignore'. we are running MySql 5.0.xx (multiple flavors of 5.0).
thanks!
-
May 19, 2011 at 9:36 am #32238AparnaMember
Hi,
Could you please check in the MySQL.ini file if the 'binlog_ignore' statement is being used and inform us about the same? Thanks!
-
May 19, 2011 at 4:15 pm #32239smineParticipant
our system administrator is on vacation. i will ask about 'binlog_ignore' when he returns sometime next week. (if this is something that i can find on my own as a regular, non-privileged user, please let me knw and i will look.)
-
May 24, 2011 at 5:21 pm #32240smineParticipant'Aparna' wrote:
Could you please check in the MySQL.ini file if the 'binlog_ignore' statement is being used and inform us about the same? Thanks!
here is the response from our admin/architect:
Quote:Yup, we do things a little funky. We don't actually use binary-ignore-db, we use replicate-wild-do-table, but the effect is the same, except it is inclusionary rather than exclusionary.does that help?
-
May 25, 2011 at 7:57 am #32241peterlaursenParticipant
I really do not know if we can do anything about it. I don't promise anything. But we will have to check (nad understand) with 'replicate-wild-do-table'.
-
May 25, 2011 at 11:38 am #32242AparnaMember
Hi,
You said you have a master slave set up right? Could you please give us the exact server versions of both your slave as well as the master. We will try and set up a similar environment here. And also tell us the operating system that you have the set up on.
Thank you!
-
May 25, 2011 at 5:30 pm #32243smineParticipant
from our admin/architect:
Quote:MySQL 5.0.45 (Community Version) on master and minion.
RHEL (Red Hat Enterprise Linux) 5.5 on the master, RHEL 5.2 on the minion.
-
May 26, 2011 at 1:01 pm #32244AparnaMember
Hi,
We tried reproducing this issue at our end but it works just fine for us. In order to investigate this further would it be possible to send the “my.cnf” files of both your master as well as the slave servers? Sensitive information such as the password and other log in details can be removed. If it is OK to send these two log files then please attach them and mail them to [email protected]. This creates a private ticket which only our team and you can view.
Thank you!
-
May 30, 2011 at 6:24 pm #32245smineParticipant
thank you so much for trying to reproduce this. since it seems to be a very rare occurrence, and since we have a workaround, we feel it is not worth continuing to try to figure out what is happening.
thanks again!
-
-
AuthorPosts
- You must be logged in to reply to this topic.