Just a quick post to note that the content from my hands-on lab at MySQL Connect (“MySQL Enterprise Features in Practice”) has been uploaded to the content catalog, and can be found here. This includes the 36-page lab manual and example commands and programs (mostly in Java; the package includes both compiled and source code). For those who attended the lab, this is an opportunity to complete the exercises we didn’t get to in the 2.5 hours, and for those who missed it, an opportunity to learn more about the features and capabilities of key MySQL Enterprise products and features such as MySQL Enterprise Audit plugin, MySQL Enterprise Monitor and MySQL Enterprise Security (PAM plugin). I hope to expand on the lab content …
[Read more]Yesterday we announced the GA release of Percona Server 5.6, the latest release of our enhanced, drop-in replacement for MySQL. Percona Server 5.6 is the best free MySQL alternative for demanding applications. Our third major release, Percona Server 5.6 offers all the improvements found in MySQL 5.6 Community Edition plus scalability, availability, backup, and security features some of which are found only in MySQL 5.6 Enterprise Edition.
Percona Server 5.6 comes with:
- General performance improvements
- Extensive diagnostics via TABLE/INDEX/USER …
The next Bristol (and surrounding areas) MySQL meetup will take place on Thursday 10th of October in Bristol (currently) scheduled for 7.00pm at the Watershed. I say currently because it might be moved if we can find a quieter place. I personally found the Watershed pretty noisy. The topic of the night will be tools. We'll have a 50,000ft overview of some of the tools and then make some time for some demos. According to the RSVP list there's a nice mix of Dev and Ops so there should be a mixture of experience and hopefully some inspirational use cases for tools being used in the wild. Right this moment the agenda of tools will be some from the following;
- pt-toolkit
- openark-toolkit
- Oracle's MySQL Utilities
- Xtrabackup
- Mydumper
- Common_schema
- AOT
…
[Read more]Problem
You have a query executed by MySQL Connector/Python and would like to show column information nicely on the console.
Solution
Every cursor object has a description property. This can be used to show information about the columns in a result set.
columns = [] maxnamesize = 0 for coldesc in cur.description: coldesc = list(coldesc) coldesc[2:6] = [] columns.append(coldesc) namesize = len(coldesc[0]) if namesize > maxnamesize: maxnamesize = namesize fmt = "{{nr:3}} {{name:{0}}} {{type:12}} {{null}}".format( maxnamesize+1) colnr = 1 for column in columns: (colname, fieldtype, nullok, colflags) = column print(fmt.format( nr=colnr, name=colname, null='NOT …[Read more]
Today as i was learning for the new MySQL 5.6-certification (more about that in a later post) i stumbled again across the host_cache-Table that was added to MySQL in 5.6.5. Before that you had no chance to check which hosts are already known by the MySQL-server.
So thats a pretty good feature for us. And even better: you could resize the size of the host_cache now! Whoohoo, awesome! As we have a lot of servers that need to connect to one of our MySQL-server and we could not switch to ip-based-authentication we were really happy to tune the host_cache-size without recompiling MySQL.
Unfortunately i noticed that the performance_schema.host_cache table only holds 128 rows and that the content was changing everytime i checked. So i logged in to a server that wasn’t already in the host_cache-table, made a connection attempt to the mysql server and checked again the host_cache-table:
The server was now in the …
[Read more]I occasionally see customers who are taking backups from their PXC clusters that complain that the cluster “stalls” during the backup. As I wrote about in a previous blog post, often these stalls are really just Flow Control. But why would a backup cause Flow control?
Most backups I know of (even Percona XtraBackup) take a FLUSH TABLES WITH READ LOCK (FTWRL) at some point in the backup process. This can be disabled in XtraBackup (in certain circumstances), but it is enabled by default.
If you go to your active cluster right now an execute a …
[Read more]A bit over four years ago I collapsed just across the finish line of completing a book on MySQL. It was 700 pages and even I am not long-winded enough to write it all myself but fortunately Sheeri did a standup job for her half of the book. Writing this book was one of the most painful processes in my life. Even so, it was a good thing in some ways. Looking back, I am satisfied that others still think its a good book even in a field where literature gets out of date very rapidly. Just a few days ago I run across a link with a version of the "ten best" MySQL books. I will pass it along with one comment -- I feel the High Performance MySQL book that Baron Schwartz, Peter Zaitsev and others wrote should be included in this list. Indeed it should be very high on the list. For those who have moved past the basics it is an invaluable resource. For SQL optimization I think the Effective MySQL Optimizing SQL Statements by Ronald Bradford …
[Read more]MySQL Workbench have one nice feature which is probably a stranger for some of us. The name of this feature is vertical query output, it help in situations where the standard Workbench output will not be very useful. This functionality is very easy to use and in this post I’ll try to visualize some of it’s benefits.
First we need to know how to use it, so we’ve provided you two options to execute the query with vertical output. One of them is the menu bar where you can find item named Execute vertically, you’ll also find hint about the shortcut for that option it’s CTRL+ALT+RETURN.
After you know how to get the vertical query output, I’ll show you some screen shots to compare it with command line output.
Let’s take the command that suits best to this type of output, it’s SHOW ENGINE INNODB STATUS. Normally to understand the output, you probably copy it to some notepad app, and …
[Read more]
I'll show a chart which indicates the level of support for
trigger features in major open-source DBMSs.
I'll comment on new features in MySQL 5.7.
I'll show how triggers can be used to abort statements which are
taking too long.
Trigger features in major open-source DBMSs
Feature | Firebird | Ingres | MySQL+MariaDB | PostgreSQL |
---|---|---|---|---|
Any compound statement | YES | - | YES | - |
Alter | YES | - | - | - |
Disable | YES | - | - | YES | …
Percona Server version 5.6.13-61.0
Percona is glad to announce the first GA (Generally Available) release of Percona Server 5.6.13-61.0 on October 7th, 2013 (Downloads are available here and from the Percona Software Repositories.
Based on MySQL 5.6.13, including all the bug fixes in it, Percona Server 5.6.13-61.0 is the first GA release in the Percona Server 5.6 series. All …
[Read more]