MySQL

DDL statements, However…">MySQL does support preparing some DDL statements, However…

Posted by Danny Froberg on 10 May, 2010 at 1:22 pm

Bill Kar­win gives some insight into some work arounds when cre­at­ing func­tions, trig­gers and pro­ce­dures using Zend Frame­work; MySQL does sup­port prepar­ing some DDL state­ments, even in older ver­sions. See http://dev.mysql.com/doc/refman/5.1/en/sql-syntax-prepared-statements.html for lists of what state­ments can be pre­pared. How­ever, some DDL state­ments are still not sup­ported as pre­pared state­ments, for exam­ple CREATE FUNCTION, CREATE […]

Migrating MySQL latin1 to utf8 – In House Version

Posted by Danny Froberg on 18 March, 2010 at 6:00 pm
This entry is part 4 of 4 in the series Migrat­ing MySQL latin1 to utf8

Use this method if at all pos­si­ble as it will attempt to recover non-English latin1 char­ac­ters (accents, umlauts) in your exist­ing data. Con­firm your data­base is cur­rently encoded in latin1. Make a fresh backup (ide­ally using mysql­hot­copy se notes below) Tem­porar­ily dis­able your cron­job so you don’t have any­thing try­ing to access the data­base. The steps below […]

Migrating MySQL latin1 to utf8 – The process

Posted by Danny Froberg on 8 March, 2010 at 3:23 pm
This entry is part 3 of 4 in the series Migrat­ing MySQL latin1 to utf8

Hav­ing cov­ered the prepa­ra­tion and char­ac­ter set options of per­form­ing a latin1 to utf8 MySQL migra­tion, just how do you per­form the migra­tion cor­rectly. Com­plete story again at Migrat­ing MySQL latin1 to utf8 – The process .

MySQL :: Managing Hierarchical Data in MySQL

Posted by Danny Froberg on 4 March, 2010 at 4:49 am

Mike Hillyer wrote a very good arti­cle on Man­ag­ing Hier­ar­chi­cal data in MySQL, defen­itely worth a read; Most users at one time or another have dealt with hier­ar­chi­cal data in a SQL data­base and no doubt learned that the man­age­ment of hier­ar­chi­cal data is not what a rela­tional data­base is intended for. The tables of a […]

Migrating MySQL latin1 to utf8 – Character Set Options

Posted by Danny Froberg on 3 March, 2010 at 11:02 pm
This entry is part 2 of 4 in the series Migrat­ing MySQL latin1 to utf8

Con­tin­u­ing on from prepa­ra­tion in our MySQL latin1 to utf8 migra­tion let us first under­stand where MySQL uses char­ac­ter sets. MySQL defines the char­ac­ter set at 4 dif­fer­ent lev­els for the struc­ture of data. via Migrat­ing MySQL latin1 to utf8 – Char­ac­ter Set Options

Migrating MySQL latin1 to utf8 – Preparation

Posted by Danny Froberg on 3 March, 2010 at 10:45 pm
This entry is part 1 of 4 in the series Migrat­ing MySQL latin1 to utf8

Before under­tak­ing such migra­tion the first step is a les­son in under­stand­ing more about how latin1 and utf8 work and inter­act in MySQL. latin1 in a com­mon and his­tor­i­cal char­ac­ter set used in MySQL. utf8 first avail­able in MySQL Ver­sion 4.1 is an encod­ing sup­port­ing mul­ti­ple bytes and is the sys­tem default in MySQL 5.0 via […]

Jayson Minard: Yes, I Crashed the Site!

Posted by Danny Froberg on 12 February, 2010 at 12:51 pm

Jayson Minard wrote a very good arti­cle on upgrad­ing a pro­duc­tion site and what can go wrong and what we can learn from it. Yes­ter­day, I per­formed an upgrade to a third-party pack­age used with Zend Devel­oper Zone. It has an auto­mated schema update sys­tem which silently per­forms actions on the data­base that had a large […]

InnoDB Performance Monitoring with innotop

Posted by Danny Froberg on 13 December, 2009 at 3:43 pm

Man­u­ally extract­ing rel­e­vant infor­ma­tion from repeated incan­ta­tions of SHOW ENGINE INNODB STATUS while try­ing to fig­ure out what Inn­oDB is doing is not only error prone, it’s just plain hard to do. And since MySQL doesn’t expose the data you really want in an INFORMATION_SCHEMA table (yet?), the option is use an exter­nal pro­gram to help: innotop.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes