Jump to content

How to only open connection to Slave from specified time


jeger003

Recommended Posts

You do have a technical reason why you don't want the connection, or just "don't like it"? If the latter then I'm going to try to convince you that it's not a problem and you should just leave it be.

well does it slow anything down to have a constant connection open? thats my main reason of closing it off. Also I have an event that runs once a day to update the MASTER. So in the entire day the MASTER has activity only once!

Thanks! what about this issue? I get this error when I run a query:

 

 

Error 'Table 'rdb.rest' doesn't exist' on query. Default database: 'ftd_store'. Query:...

when I run this:

 

 

 

INSERT INTO ftd_store.sdnt(dom,art,ttl,ttl_count,last_updated)

SELECT * FROM

(

SELECT dom,art,ttl,COUNT(OKey) AS ttlCount, NOW()

FROM rdb.rest

WHERE dom = dom_val

GROUP BY art,ttl

ORDER BY dom,ttlCount DESC

LIMIT 200

) aliasResults ON DUPLICATE KEY UPDATE ttl_count = ttlCount, last_updated = NOW();

  • 2 weeks later...

That's because you're not supposed to write statements that refer to multiple databases when using replication -- it's just asking for trouble, and it's well documented.

 

As for the slave thread, the whole point is to keep the lag to a minimum -- don't try and mess with it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.