MySQL management, tutorials, scripts, coding, programming and tips for database administrators
MySQL's Performance Schema provides a way to troubleshoot a lot of common performance issues without having to rely on specialized third-party solutions. The fact that it uses regular SQL is also a big plus! Join Rob Gravelle as he explores the Performance Schema.
Gone are the days that a Database Administrator (DBA) spends his or her time between a desktop workstation and database server(s). Today, DBAs require tools that will allow them to perform administrative tasks wherever they may be and lately, the trend has been towards applications specifically targeted to mobile devices, since that is what people always have with them.
Being one of the most popular databases on the planet, MySQL administration has been made a whole lot easier thanks to a number of new mobile apps. Rob Gravelle picks out some of the more promising new products for iOS.
Rob Gravelle explores the perils of working with dates in MySQL.
Rob Gravelle highlights a gotcha related to MySQL's overflow handling of numeric values that are outside the permissible range of the column data type.
Importing into MySQL from databases of different types is challenging because vendors have their own proprietary tools and SQL extensions. Rob Gravelle presents some software products that can abstract each vendor's particular language so that data may be transferred between them in a seamless process.
For MySQL administrators who would rather not write and maintain their own import code, there are tools that can markedly simplify the importing of data from various sources. Rob Gravelle demonstrates how to use the Navicat Database Admin Tool to acquire data from XML, .csv, .txt, and Excel files.
In the Importing XML Data into MySQL Tables Using a Stored Procedure article, Rob Gravelle outlined some ways to work around MySQL's restrictions on stored procedures to import XML data into your MySQL database tables. Today's article covers how to use a Prepared Statement, including error handling and validation, as well as handling additional XML formats.
In theory, it would seem that a stored procedure would be the perfect vehicle for importing XML data from a file, and yet, the LOAD XML INFILE statement cannot be run within a Stored Procedure. Fortunately, there is a way to get around this limitation.
Ever since Oracle became the owner of MySQL when it acquired Sun Microsystems in 2010, improvements to the software haven’t been as forthcoming as one might hope. There still doesn’t seem to be anything like groups in MySQL. According to Oracle, we can expect it to arrive for MySQL 7.0! Until then, this article presents a few software offerings that may help tide you over.
There are a lot of occasions for converting one data type to another in MySQL. All of these can be achieved using MySQL's native CONVERT() and CAST() functions. Read on to learn how to use both.