If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Replication and SHOW command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-01-05, 10:01
mepaco mepaco is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Replication and SHOW command

We have replication set up for our production database; one master and one slave. I have noticed that we are getting a lot of SHOW queries, specifically SHOW COLLATION and SHOW VARIABLES. I could see how the slave might need this information and could be polling the master but it just doesn't seem right to me. We will get up to 30 of these queries a second and then none for a while. There is no constant frequency. Any ideas? Could it be the slave?

-Paco
Reply With Quote
  #2 (permalink)  
Old 12-01-05, 21:18
jfulton jfulton is offline
Registered User
 
Join Date: Apr 2005
Location: Baltimore, MD
Posts: 297
What program are you using for administration? I fee like those calls may be made by the administration app to update the GUI??? That also may explain why it is "sporadic."

I don't think a master/slave setup would be calling those.
http://dev.mysql.com/doc/refman/5.0/...ation-sql.html
Reply With Quote
  #3 (permalink)  
Old 12-02-05, 08:13
mepaco mepaco is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks for the help. Actually, I figured it out. I'm using MySQL Administrator and that explained the calls for SHOW STATUS and SHOW INNODB STATUS. However, the other calls are because of JDBC. Every time a Java based client connects to the database the following calls are executed:

Query SET NAMES latin1
Query SET character_set_results = NULL
Query SHOW VARIABLES
Query SHOW COLLATION
Query SET autocommit=1

I guess its not a big deal but is it really necessary? Can we specify the default conditions for the JDBC so these calls aren't necessary?

Thanks,
Paco
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On