How to tell which storage engine a MySQL table uses

MySQL supports multiple storage engines (e.g. MyISAM, INNODB, etc) each with its pros and cons, and each table in a MySQL database can have a different storage engine selected. This post looks at how to work out which table storage engine is used by a MySQL table, using either a SQL query or using the web browser tool phpMyAdmin.

Rename multiple tables in MySQL

Some time back I posted how to rename a table in MySQL, either using a SQL query or using phpMyAdmin. In this post I will show how to rename multiple MySQL tables from a single query, including how you would swap two table names.

Insert multiple records into MySQL with a single query

It is possible to insert multiple records into MySQL using a comma separated list of fields. This post looks at how to do this using SQL – if you're using a nice ORM solution instead of writing SQL queries then this won't really apply.

Setting the MySQL timezone per connection

There may be instances when you need to set your MySQL database to a different timezone from the one the server is in, but only for a specific website or application. It is possible to set the timezone on a per connection basis with MySQL and this post looks at how to do it.