Export/Import Database using MySQL Workbench
Last Updated on Monday, 11 February 2013
This article isn't unique as there are other tutorials out there. This is meant to detail a process to export a database using MySQL Workbench and then to import it into another database.
Why?
If you're confined to use this product then this is how to do it. Personally, even a web-based app such as PhpMyAdmin would fare better.
How?
Quickly update all content in mySQL database replacing a string
Last Updated on Sunday, 03 February 2013
This is an article on how to replace a string with another in all your joomla articles without modifying other data such as modified date and author.
Why?
I used to have a third-party plugin that would replace my HTML tags <PRE> with <PRE CLASS="brush:php">. Not I want to switch these back.
How?
For demo purposes, I'm searching a column called introtext in a database table called MYTABLE_content. First let me find all the articles that need this change:
Delete related records from multiple tables
Last Updated on Friday, 11 January 2013
So this is a quick article on how to delete from multiple tables in a mySQL database where we use some JOIN statements.
Why?
It is never recommended to delete from multiple tables and instead to use the system you were given. Given a Relational Database Management System (RDBMS) where deleting some erroneous rows in one table will cause errors because the existence of those rows is stored in another table, how do we delete from all the related tables as well?
How?
Generate Academic Calendar using MySQL
Last Updated on Wednesday, 09 January 2013
We have a specific timetabling system for academic institutions and all our staff/students follow academic week numbers as opposed to calendar week numbers.
Why?
The aim of this article is to quickly generate a calendar for a full academic year for referencing by staff/students.
How?
MySQL day of week ending on Friday
Last Updated on Monday, 19 November 2012
Week Ending Date has been requested a lot more frequently now. It's an odd one but the example below shows how to do this for when the week ends on Friday. Assuming it starts on the previous Saturday.
Why?
Problems with MySQL weeks always starting on Sunday means this isn't very useful. I have another system which starts on Monday and ends on the following Sunday. The solution below is for the opposite, where the week starts on the previous Saturday and ends on the last working day of the week.
The Solution

