Home |  MySQL Buzz |  FAQ |  Feeds |  Submit your blog feed |  Feedback |  Archive |  Aggregate feed RSS 2.0 English Deutsch Español Français Italiano 日本語 Русский
Showing entries 1 to 30 of 25645 Next 30 Older Entries
Why not make a tool to improve existing configurations?
+0 Vote Up -0Vote Down

A couple of users of our very popular MySQL Configuration Wizard have submitted feedback such as “I’d love to input my existing server settings and get suggestions on how to improve it.”

This sounds like it would be great, doesn’t it? We’ve considered doing this, and even partially implemented it. But during our pre-release testing, we found a lot of potentially serious problems with the idea. It turns out to be very subtle — perhaps too subtle to be done with any computer program, no matter how smart, because there might be a lot of assumptions it’s forced to make, which could turn out to be dangerous. Every approach we considered carried a high risk of de-optimizing a server so it performs worse than before.

So in the end, although our tool

  [Read more...]
Building MariaDB 5.3 on Windows
+0 Vote Up -0Vote Down

I just wanted to share my steps for building MariaDB 5.3 on Windows. (Note, this is not much different than the instructions Wlad posted here).

But, things are not always so smooth, and of course I ran into a couple small issues, so I wanted to share my outputs plus those issues and their solutions (once again many thanks go to Wlad!) for those out there who might encounter the same.

Here are the steps to build:

  • Download MariaDB 5.3 and extracted to C:\mariadb-5.3
  • cd C:\mariadb-5.3
  • mkdir bld
  • cd bld
  • cmake .. -G "Visual Studio 9 2008"
  • cmake --build . --config relwithdebinfo --target package

    * By making a sub-dir named ‘bld’ and cd’ing into it, you’ll keep

  •   [Read more...]
    User Group Videos....
    +1 Vote Up -0Vote Down

    I have been attempting to be better about letting folks in the general MySQL world know when the videos from the Boston MySQL User Group are up. We have a great group, with anywhere from 20-50 attendees each month, and the speakers are always great, even when the group asks some tough questions.* Thanks to the generous donation of time that Richard Laskey puts in editing the videos, there are 2 videos I can share with you:

    Ivan Zoratti of SkySQL presented MySQL HA Reloaded at the December MySQL Boston Users Group. Slides are online at http://www.slideshare.net/izoratti/ha-reloaded-11261643

    Tim Callaghan of Tokutek presented Fractal Tree Indexes -- Theoretical Overview and Customer Use Cases at the January

      [Read more...]
    OurSQL Episode 78: Removing Evil Queries, part 2
    +1 Vote Up -0Vote Down

    Registration for Percona Live: MySQL Conference and Expo is open! The conference is from Tuesday, April 10th through Thursday, April 12th at the Santa Clara, CA convention center. Early bird pricing ends March 12th, 2012.
    Use code PL-pod and save 10% off the early bird prices!
    . Check out the tutorial and session schedule!

    SkySQL and MariaDB Solutions Day on Friday, April 13th, 2012 in Santa Clara, CA.

    read more

    Book Review: OCA Oracle Database 11g: SQL Fundamentals I: A real-world Certification Guide
    Employee +2 Vote Up -0Vote Down

    Good books on databases are rare. So permit me to step out of my normal MySQL-centric role and review a new book that is very good and covers a lot of generic relational database territory while also teaching the basics of Oracle 11g. I would estimate that 10% of the book is 11g and the rest would be valuable to new DBAs of other database systems. Besides, seeing how other databases perform some tasks differently may spur you to improve your own.

    OCA Oracle Database 11g: SQL Fundamentals I: A real-world Certification Guide
    Author: Steve Reis

    Database books are hard to write. Databases are not warm, easy to understand and the many concepts can require a student on the subject to concentrate on many obtuse factors all at one time. Presenting the material in a clear and concise fashion


      [Read more...]
    Call for Nominations for 2012 MySQL Community Awards
    +1 Vote Up -0Vote Down

    An annual tradition of the upcoming MySQL user conference is the awards ceremony. Last year we introduced the opportunity for everyone in the community to nominate candidates and this was a big success. Now is the time to start nominating deserving winners for the awards for 2012, in the 3 categories named below.

    The winners will be selected by a community panel (see below) and winners will be announced on Wednesday, April 11th at the Santa Clara Convention Center, as part of the evening Community Reception.

    How:

    Please send in your suggestions for deserving winners
    to: mysql.awards@gmail.com
    no later than: 23:59 Sunday February 29th (Pacific time)

    read more

    Log Buffer #258, A Carnival of the Vanities for DBAs
    +2 Vote Up -0Vote Down
    Database blogging is more than about announcing that your last night’s backup was successful. While that’s extremely important to keep track of, the database world across Oracle, MySQL, and SQL Server technologies has grown way beyond. This Log Buffer Edition also extends beyond and more in this Log Buffer #258. Oracle: Laimis has produced a [...]
    New MySQL Troubleshooting Book
    +4 Vote Up -0Vote Down

    I was searching around and was pleasantly surprised when I ran across this new MySQL Troubleshooting book by Sveta Smirnova:

    “MySQL Troubleshooting – What To Do When Queries Don’t Work”

    http://shop.oreilly.com/product/0636920021964.do

    Having worked with Sveta in Support for years, I’m certain this book is chock-full of great troubleshooting techniques and advices (and you can get a good idea from the “Table of Contents” listed on the above page).

    I’m always happy to see new MySQL-related books.

    Congratulations, Sveta!

    Filesorts, Secondary Indexes and the Importance of Covering Indexes
    +1 Vote Up -0Vote Down

    Here's a question that was driving me crazy: Why do these two explain plans look different?

    explain select a from test order by b;
    +----+-------------+-------+-------+---------------+------+---------+------+---------+-------------+
    | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
    +----+-------------+-------+-------+---------------+------+---------+------+---------+-------------+
    | 1 | SIMPLE | test | index | NULL | b | 5 | NULL | 3263769 | Using index |
    +----+-------------+-------+-------+---------------+------+---------+------+---------+-------------+

    and this

    explain select a,c from test order by b;
    +----+-------------+-------+------+---------------+------+---------+------+---------+----------------+
    | id |













      [Read more...]
    MySQL 5.6 Partitons and Subpartititions
    Employee +2 Vote Up -1Vote Down

    At yesterdays MySQL Tech Tour in Dallas, a gentleman asked how to not only partition data but also store the indexes on other disks as a way of reducing I/O contention on drives.That struck a chord with me and I was soon looking up the information in the MySQL manual. I remembered there was a way to do this with MySQL 5.6 but I am sure the small screen of my cell phone and the detail level of the documentation did not convery the information as well as I had wished.

    The example I tried to show was from the subpartition section of the MySQL manual. If you read 12.1.17 for the CREATE TABLE syntax, you will see how to add DATA DIRECTORY and INDEX DIRECTORY definitions to a partition. I guess the example I remembered got stuck in my brain cache (such as it

      [Read more...]
    InnoDB disabled if ib_logfile files corrupted
    +1 Vote Up -0Vote Down


    I recently came across a dev VM running MySQL 5.0.77 (an old release, 28 January 2009) that didn’t have InnoDB available. skip-innodb wasn’t set, SHOW VARIABLES LIKE '%innodb%' looked as expected, but with one exception: the value of have-innodb was DISABLED.

    I confirmed this with SHOW ENGINES:

    (root@localhost) [(none)]> show engines;
    +------------+----------+----------------------------------------------------------------+
    | Engine     | Support  | Comment                                                        |
    +------------+----------+----------------------------------------------------------------+
    | MyISAM     | DEFAULT  | Default engine as of MySQL 3.23 with great performance

      [Read more...]
    Linux Documentation Writer Wanted!
    Employee +1 Vote Up -0Vote Down

    The Oracle Linux and Virtualization Documentation Team is seeking an experienced Technical Writer
    with a focus on writing documentation for the Oracle Linux product. (The MySQL Documentation Team is part of that group as well.)

    Applicants should be located in either Ireland, the UK, Sweden, Norway,


      [Read more...]
    MySQL, MariaDB, XtraDB, et al Downloads
    +0 Vote Up -0Vote Down

    Similar to my other catch-all pages on Server Variables, Changelogs, and Documentation, I’ve added a new ‘Downloads’ section.

    Basically, it’s just a single source containing links to all of your favorite MySQLs and related products, such as MySQL, MariaDB, XtraDB, Xtrabackup, MySQL Proxy, Connectors and more:

    http://www.chriscalender.com/?page_id=831

    Hope this helps.

     

    [MySQL][Spider][VP]Spider-2.28 VP-0.17 released
    +2 Vote Up -0Vote Down
    I'm pleased to announce the release of Spider storage engine version 2.28(beta) and Vertical Partitioning storage engine version 0.17(beta).
    Spider is a Storage Engine for database sharding.
    http://spiderformysql.com/
    Vertical Partitioning is a Storage Engine for vertical partitioning for a table.
    http://launchpad.net/vpformysql

    Please use the following for downloading binary file.
    http://spiderformysql.com/download_spider.html

    The main changes in this version are following.
    Spider
    - Support parallel searching. ("spider_bgs_mode > 0")
    The table using the Spider bundled MySQL and table partitioning performs parallel search of each partition. However,











      [Read more...]
    Optimizer tracing used by others!
    Employee +3 Vote Up -0Vote Down
    In a previous post, I had explained how to use MySQL's optimizer tracing, a new feature which appeared in MySQL 5.6.3.

    As a developer, it feels really good to see others adopt my work and make something useful out of it! My colleague Dimitri Kravtchuk, who is one of our top Benchmarking experts, has written a blog post where he shows how the optimizer tracing has helped him to figure out why, under load, once in a while and randomly, a query performed badly. His investigation technique may be reusable by other people, so I encourage you to read more about it, here.
    Tokutek Selected as a Finalist for O’Reilly Strata Conference
    +2 Vote Up -0Vote Down

    We are excited to announce that we’ve been named as one of ten finalists selected for the startup showcase at the O’Reilly Strata “Making Data Work” Conference at the end of this month in Santa Clara, California. The startup showcase will be held on February 29th, starting at 6:30 pm.

    The conference offers a great overview of the big data space, with tracks on Data Science, Business and Industry,

      [Read more...]
    Some pt-table-checksum FAQs
    +0 Vote Up -0Vote Down

    After the recent update to pt-table-checksum, I’ve seen a few FAQs about it.

    Q: is it still multi-threaded/parallel? A: No, that was a pile of bugs and complexity. If you need to run the tool in parallel to take advantage of powerful hardware, you can run several instances, say, one per database.

    Q: what chunk size should I use? A: None, let the tool adjust itself dynamically.

    Q: what if it skips a table or chunk because it’s oversized? A: this should be rare unless you have tables without any indexes; if you want to do the table in one chunk, run the tool again and specify to checksum only that table, with an appropriately large chunk size. This is one of the rare cases where you will need to specify a chunk size.

    Q: what commandline options should I use after upgrading? A: It has sensible defaults for everything, and is designed

      [Read more...]
    MySQL/QueryScript use case: DELETE all but top N records per group
    +2 Vote Up -0Vote Down

    Some administrative tasks can be simplified by using common_schema/QueryScript. I'm collecting a bunch of these for documentation. Here's one for example:

    The DBA/developer has the task of retaining only top 3 most populated countries per continent. That is, she has to DELETE 4th, 5th, 6th, ... most populated counties in each continent.

    Is it possible to work out with a single query? Yes. But the query is not pretty. In fact, it is quite complicated, and either involves unintuitive subqueries, or unintuitive hacks. A normal DBA would not want to write, neither maintain this kind of query, unless top-notch-geek, which

      [Read more...]
    I’m speaking at the MySQL conference in April
    +1 Vote Up -1Vote Down

    It might surprise you to hear this, but I had no idea whether my talks would be accepted. The committee decided on that, and neither I nor anyone else at Percona is on the committee. In any case, I’ll be giving some tutorials again this year, and two of my talks have been accepted: Measuring Scalability and Performance With TCP and Diagnosing intermittent performance problems.

    This seems like an appropriate place to mention a few words about the conference organization. The number of people involved is staggering (100+). The

      [Read more...]
    Announcing Percona Server 5.5.20-24.1
    +0 Vote Up -0Vote Down

    Percona is glad to announce the release of Percona Server 5.5.20-24.1 on February 9th, 2012 (Downloads are available here and from the Percona Software Repositories).

    Based on MySQL 5.5.20, including all the bug fixes in it, Percona Server 5.5.20-24.1 is now the current stable release in the 5.5 series. All of Percona ‘s software is open-source and free, all the details of the release can be found in the 5.5.20-24.1 milestone at Launchpad.

    Full release notes available here:   [Read more...]
    I have proof of UFOs
    +0 Vote Up -0Vote Down

    Un-maned Failover Operations

    I have video of two MySQL servers (one master, on slave) failing over from Master to Slave.  The Master becomes the Slave and vise-verse with the slave becoming read-only.  Next some load testing and then I’ll post how I did it with FREE software.

    Click here to view the video on YouTube.

    Tweet

    Drizzle Day and MariaDB day to end your MySQL user conference
    +1 Vote Up -0Vote Down

    Good news to all of you who are going or were thinking of going to the Percona Live MySQL Conference and Expo. Yesterday two great addon events were announced, both happening on Friday April 13th, right after the main conference:

    Drizzle Day 2012

    read more

    MySQL High Availability Realized - Webcast 2/16
    +0 Vote Up -0Vote Down
    High availability is about more than making sure that apps can get to your data even if there is a failure. How about when you are upgrading your database schema? What if you need to add memory to a database server or reconfigure/restart MySQL? If your apps want to read data from a MySQL slave, how can you be sure they are not reading stale data without re-coding your apps? What if your main
    Successful Dallas Tech Tour
    Employee +2 Vote Up -0Vote Down

    Benjamin Wood talks at the Dallas MySQL Tech tour on the history of MySQL

    The first MySQL Tech Tour in Dallas is over. A capacity crowd filled the room. Only a few had never had ‘hands on’ with the MySQL database and very few were comfortable source code readers. The majority came to hear about embedding MySQL, how to tun systems for better performance, and some new features in the product.

    Benjamin Wood started with a presentation on the history of MySQL and the changes in the product over the last few releases. Craig Sylvester showed how to use embedded MySQL. Then Benjamin capped off the event with a presentation on database monitoring and performance tuning. The event did go slightly

      [Read more...]
    Dot-Org Pavilion at the Percona Live MySQL Conference
    +0 Vote Up -0Vote Down

    This is a cross-post from my personal blog. Are you involved with an open-source project that’s interesting to MySQL users, such as Nginx, PHPMyAdmin, Drupal, Jenkins, PHP, and so on? Percona just published the application form for dot-org groups to have a free expo hall booth in the Percona Live MySQL Conference in April. Please submit your applications now, and tell your friends about this, because a) the schedule for applying is very short, and b) space is limited.

    For those of you who don’t know what this is, it’s another of the O’Reilly traditions we’re trying to continue. (We are trying

      [Read more...]
    North Texas MySQL Users Group Meeting set for March 12th
    Employee +3 Vote Up -0Vote Down

    The March meeting of the North Texas MySQL Users Group will be March 12th from five to seven PM at the Irving office. Pizza will be provided and a special guest speaker is double checking their schedule. Come come network, gather swag, and learn more about MySQL.

    Please RSVP below by leaving a comment so we can plan on a) enough pizza, b) any special pizza topping request, and c) have enough meeting space for the pizza.

    Oracle Office
    6031 Connection Drive
    Irving, TX 75039





      [Read more...]
    Shinguz: I prefer MySQL binary tar balls with Galera...
    +1 Vote Up -0Vote Down

    In my set-ups I have different MySQL versions (MySQL 5.0, 5.1, 5.5 and 5.6, Percona Server 13.1 and 24.0, MariaDB 5.2.10, 5.3.3, Galera 1.0, 1.1 and 2.0) running in parallel at the same time.
    Up to now I have not found a practical way yet to do this with RPM or DEB packages. If anybody knows how to do it I am happy to hear about it.

    So I love and need only binary tar balls. Installation and removal is done within seconds and no remainings are left over after a removal. To operate the whole I use myenv.
    Some software providers unfortunately do not provide binary tar


      [Read more...]
    common_schema rev. 218: QueryScript, throttling, processes, documentation
    +0 Vote Up -0Vote Down

    common_schema, revision 218 is released, with major new features, top one being server side scripting. Here are the highlights:

    • QueryScript: server side scripting is now supported by common_schema, which acts as an interpreter for QueryScript code.
    • Throttling for queries is now made available via the throttle() function.
    • Enhancements to processlist-related views, including the new slave_hosts view.
    • Inline documentation/help is available via the help() routine.
    • more...

    QueryScript

    common_schema makes for a QueryScript implementation for MySQL. You can run server side

      [Read more...]
    QueryScript: SQL scripting language
    +2 Vote Up -0Vote Down

    Introducing QueryScript: a programming language aimed for SQL scripting, seamlessly combining scripting power such as flow control & variables with standard SQL statements or RDBMS-specific commands.

    QueryScript is available fro MySQL via common_schema, which adds MySQL-specific usage.

    What does QueryScript look like? Here are a few code samples:

    Turn a bulk DELETE operation into smaller tasks. Throttle in between.

    while (DELETE FROM archive.events WHERE ts < CURDATE() LIMIT 1000)
    {
      throttle 2;
    }

    Convert all InnoDB tables in the 'sakila' database to compressed format:

    foreach ($table, $schema, $engine: table in sakila)
    {
      if ($engine = 'InnoDB')
        ALTER TABLE
      [Read more...]
    Adding dynamic fields to Signups on Drupal
    +0 Vote Up -0Vote Down

    In my day job at SkySQL I work with Drupal as our content management system.  One thing we often need to do is provide a way for people to sign up for events and the like.  One such event is the upcoming SkySQL and MariaDB: Solutions Day for the MySQL® Database and unlike other events we needed to take into account the dietary requirements of those wishing to attend.

    For events registration we use the Signup module and use a theme template function to provide a set of standard fields.  The code looks something like this:

    function ourtheme_signup_user_form($node) {
    $form = array();
    // If this function is providing any extra fields

      [Read more...]
    Showing entries 1 to 30 of 25645 Next 30 Older Entries

    Planet MySQL © 1995-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.,
    2012, Oracle Corporation and/or its affiliates.
    Content reproduced on this site is the property of the respective copyright holders.
    It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.