Tag Archives: database

Joining a table to itself in MySQL

Joining a table to itself is a technique that, while moderately painful to contemplate, can prove quite valuable in making certain updates possible. Consider an example case where we have a table containing various company names, some of which actually … Continue reading

Posted in MySQL | Tagged , , | 3 Comments

MySQL replication and flush tables with read lock gotcha

I ran into something that stumped me for a few minutes today while trying to setup some replicated databases in MySQL. As with any replication setup, you have to lock the master tables and note the binary log position via: … Continue reading

Posted in MySQL | Tagged , , , | 6 Comments

Search MySQL field names

I had occasion recently to map out a number of databases, some of which contained quite a few tables. I was not intimately familiar with most of them, and since they didn’t have foreign keys established in most cases, I … Continue reading

Posted in MySQL, Programming | Tagged , , , | Leave a comment