MySQL – Custom ORDER BY field
Today at work I had to pull a large set of data out of a database. The data needed to be displayed in a particular order by multiple fields/columns. Normally this is as simple as using ORDER BY...
View ArticleMySQL Master-Slave Replication on CentOS / RHEL
Today I set up some MySQL replication for a server that I set up a few weeks ago. This was my first time doing replication and it was quite a learning experience. This was using MySQL 5.0 and CentOS...
View ArticleBash Script to dump MySQL Databases Over Network to Other Server.
At some point in time I need to clone many of our databases over to another MySQL server. This will require locking all users out of our severs (Apache) so that none of the databases can be updated...
View ArticleBash Script to Check MySQL Replication Status, Notification
The first few days after setting up MySQL replication, I noticed that one small error would stop the replication. When this went production, we couldn’t afford to have the replication stop and not know...
View Article