Showing entries 22201 to 22210 of 44028
« 10 Newer Entries | 10 Older Entries »
Speaking at NovaRUG on Thursday

I’ll be joining the NovaRUG (Northern Virginia Ruby Users’ Group) on Thursday to talk about MySQL performance. See their blog for the details and how to RSVP.

Related posts:

  1. Free webinar on MySQL performance this Thursday
  2. Speaking at MySQL Meetup in Northern Virginia
  3. Speaking at EdUI Conference 2009
[Read more]
MySQLnd Plugins: Writing a MySQL Query Logger in PHP

During the development of an application, not all time is spent on writing code. A lot of time is spent on reading debug output, crawling through log files and firing up the debugger to figure out what the application does. While the debugger helps us to inspect details of a running application on a testing environment, logfiles are often the only indication of the origin of an error on a production system. In this blogpost I want to describe how to log SQL statements on an existing application without touching any existing line of code at all. We will use a new MySQLnd Extension developed at the Mayflower OpenSource Labs for that purpose.

As an example, I will use PHProjekt 6. The project is particularly suitable for demonstration purposes as it has a logging infrastructure for function calls, but does not log SQL statements. …

[Read more]
Calpont InfiniDBTM — Scaling MySQL Data and Performance Webinar

Is your MySQL deployment reaching its performance and data limits? Calpont InfiniDB is a massive scaling, high performance analytic database built on MySQL. InfiniDB provides ultra fast query response against small, large and extremely large data.


Unlike other MySQL solutions, only Calpont provides a multi-threaded, scale out software architecture that maintains query performance as your data and user requirements grow. Since you know MySQL, it's also easy to install, learn an...

Speaking at NovaRUG on Thursday

I’ll be joining the NovaRUG (Northern Virginia Ruby Users’ Group) on Thursday to talk about MySQL performance. See their blog for the details and how to RSVP.

Easy Python: display LVM details in XML

If you need to work with LVM in your scripts but haven’t found a good method to access details about Logical Volume Groups, here’s a simple Python script that will print the details about any volumes on your system. This could be useful for writing a partition check script for your MySQL data directory (if you’re not using a standard monitoring system like Nagios).

import sys
import os
import commands
import subprocess
import select

def lvm():
    print ""
    LVM_PATH = "/sbin"
    LVM_BIN = os.path.join(LVM_PATH, 'lvm')
    argv = list()
    argv.append(LVM_BIN)
    argv.append("lvs")
    argv.append("--nosuffix")
    argv.append("--noheadings")
    argv.append("--units")
    argv.append("b")
    argv.append("--separator")
    argv.append(";")
    argv.append("-o")
    argv.append("lv_name,vg_name,lv_size")

    process = subprocess.Popen(argv, stdout=subprocess.PIPE)
    output = ""
    out = process.stdout.readline()
    output += out
    lines = …
[Read more]
Announcing TokuDB v4.1

Tokutek is pleased to announce immediate availability of TokuDB for MySQL, version 4.1. It is designed for continuous querying and analysis of large volumes of rapidly arriving and changing data, while maintaining full ACID properties.

New in TokuDB v4.1 includes important improvements, most notably support for SAVEPOINT and improved Fast Loader performance (introduced in v4.0).

This new release builds on TokuDB’s unique combination of capabilities:

  • 10x-50x faster indexing for faster querying
  • Full support for ACID transactions
  • Short recovery time (seconds or minutes, not hours or days)
  • Immunity to database aging to eliminate performance degradation and maintenance headaches
  • 5x-15x data compression for reduced disk use and lower storage costs

Because of its high …

[Read more]
MySQL query to find all views in a database

You might find it useful to list all the views/tables in a particular database.

I am going to show you three different methods to get the lists using GUI and command line tools.

How to find all tables of a particular storage engine in MySQL?

MySQL supports several storage engines with different features and functions.

If you want to find out what tables are using a particular storage engine in MySQL then can run these simple queries in a MySQL command line interface.

MySQL: Query caused different errors on master and slave

We ran across the following error on a MySQL slave server recent: mysql> SHOW SLAVE STATUS \G <snip> Last_Error: Query caused different errors on master and slave. Error on master: 'Deadlock found when trying to get lock; try restarting transaction' (1213), Error on slave: 'no error' (0). Default database: '<database_name>'. Query: '<query>' <snip> In this […]

Blank MySQL Graphs in Munin

From the Munin FAQ

Q: Why are the graphs for the MySQL plugin blank?

This is due to a bug in a Perl library Munin uses which causes $PATH to be lost. This again causes the plugin to not find the mysqladmin program which it needs to retrive the numbers the needed in the graphs. The solution is to hardcode the path of the program.

First locate the mysqladmin program. On most systems, the command which mysqladmin, type mysqladmin or locate mysqladmin will help you. When you find the path, enter that path in /etc/munin/plugin-conf.d/munin-node.

This is how it might look:

darkstar:~# which mysqladmin
/usr/bin/mysqladmin
Then, under the [mysql*] section identifier in /etc/munin/plugin-conf.d/munin-node, add the following line:

env.mysqladmin /usr/bin/mysqladmin

Found in the …

[Read more]
Showing entries 22201 to 22210 of 44028
« 10 Newer Entries | 10 Older Entries »