Home |  MySQL Buzz |  FAQ |  Feeds |  Submit your blog feed |  Feedback |  Archive |  Aggregate feed RSS 2.0 English Deutsch Español Français Italiano 日本語 Русский Português 中文
Showing entries 1 to 30 of 29843 Next 30 Older Entries
Counting tokens with common_schema
+0 Vote Up -0Vote Down

There are several approaches to count the occurrences of a substring inside a larger string in MySQL. Some people use replace() and length() (I would use char_length() instead) to do it. Others use stored functions. Recently I had to count the occurrences of a certain key across many rows of JSON. Instead of writing my own query using one of the approaches mentioned above I decided to use common_schema.

In the past I've discussed JSON parsing in MySQL using common_schema.

  [Read more...]
Slides from Percona MySQL University Portland – Conquering “Big Data”: An introduction to Shard-Query
+0 Vote Up -0Vote Down

I posted the slides to my talk on SlideShare.  This talk includes high level information about Shard-Query, why it is needed, and the kind of schema it works well with.

Conquering "big data": An introduction to shard query from Justin Swanhart

You can also find a more technical information about Shard-Query and the how it works here:

Divide and conquer in the cloud from
  [Read more...]
First Madrid MySQL Users Group scheduled for the 4th July
+0 Vote Up -0Vote Down

As mentioned here and after talking to a few people we have created a meetup page, http://www.meetup.com/Madrid-MySQL-users-group/ and proposed the first meeting on Thursday, 4th July. If you are interested and in the area come along and say hello. It should be interesting to see a few others who work in the field.  If you can let us know you are coming so we have an idea of how much interest there is.

3 Ways to Optimize for Paging in MySQL
+0 Vote Up -0Vote Down

Read the original article at 3 Ways to Optimize for Paging in MySQL

Join 6100 others and follow Sean Hull on twitter @hullsean. Lots and lots of web applications need to page through information. From customer records, to the albums in your itunes collection. So as web developers and architects, it’s important that we do all this efficiently. Start by looking at how you’re fetching information from your [...]

For more articles like these go to Sean Hull's Scalable Startups

Related posts:
  • How to Optimize MySQL UNION For High Speed
  • 5 Ways to fortify MySQL
  •   [Read more...]
    Thanks Oracle for fixing the GPL man page issue
    +2 Vote Up -2Vote Down

    Timing is everything. I wrote about how MySQL man pages were silently relicensed away from the GPL. It was picked up by a lot of sites: Hacker News, Slashdot, LWN, and probably more. That led to a bug report in Debian (#712730) to complain that MySQL is no longer compliant with the Debian Free Software Guidelines (DFSG). That prompted Norvald Ryeng who’s active in Debian (thanks Oracle!) to file MySQL bug

      [Read more...]
    Announcing TokuMX v1.0: Toku+Mongo = You Can Have It All
    +3 Vote Up -0Vote Down

    Tokutek is known for its full-featured fast-indexing technology. MongoDB is known for its great document-based data model and ease of use. TokuMX, version 1.0, combines the best of both worlds.

    • So what, exactly, is TokuMX? The simplest (but incomplete) answer is that TokuMX is MongoDB with all its storage code replaced by Tokutek’s Fractal Tree indexes.
    • How do Fractal Tree indexes improve MongoDB? The direct benefits include high-performance indexing, strong compression, and performance stability – in other words, the performance stays high, even when data is larger than RAM.
    • Are there any features in TokuMX that MongoDB doesn’t have? Yes. We have added support for transactions to TokuMX, so that TokuMX is ACID compliant and has MVCC. We have also added support for clustering indexes, which
      [Read more...]
    Announcing the MySQL Plugin for New Relic
    +2 Vote Up -0Vote Down

    Many application developers would know of New Relic. A SaaS performance and monitoring tool targeted towards your web application monitoring including PHP, Ruby, Java, .Net, Python and Node.

    With the release today (June 19, 2013) of the New Relic Platform, custom monitoring of data stores including MySQL are now possible. Try it now free. This link will provide you a free standard account (no cost, no billing details necessary), that enables you to perform application monitoring, server monitoring, MySQL instance monitoring and monitoring of many other products via many plugins.

    Over the next few posts I will be discussing some of the design decisions I made for this MySQL plugin. New

      [Read more...]
    New Member of the Cluster API Family: The Native Node.js Connector
    Employee_Team +1 Vote Up -0Vote Down

    MySQL Cluster 7.3 went GA yesterday and with it came a new member of the MySQL Cluster API family: mysql-js – a native Node.js connector. mysql-js uses the NDB API to connect directly to the data nodes which improves performance compared to executing queries through the MySQL nodes.

    For an introduction to mysql-js and installation instructions I will recommend taking a look at the official API documentation and Andrew Morgan’s blog; the latter also has an overview of the new features in MySQL

      [Read more...]
    The MySQL Man Pages ARE Available under the GPL
    Employee +11 Vote Up -1Vote Down

    Due to a bug in our release packaging scripts, the wrong version of the man pages, with the wrong license text, were copied into the MySQL Server GPL packages. The MySQL Man Pages continue to be available under GPL. The MySQL Server GPL packages will be corrected ASAP. You can read and follow the public bug here.

    We apologize for the confusion this has caused. As always, please feel free to contact us, to ask about changes that you are wondering about.  Reporting a bug is always a good way to communicate with us.

    Have a Happy GPL Midsummer, Tomas

    What technologies are you running alongside MySQL?
    +2 Vote Up -0Vote Down

    In many environments MySQL is not the only technology used to store in-process data.

    Quite frequently, especially with large-scale or complicated applications, we use MySQL alongside other technologies for certain tasks of reporting, caching as well as main data-store for portions of application.

    What technologies for data storage and processing do you use alongside MySQL in your environment? Please feel free to elaborate in the comments about your use case and experiences!

    Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.

    The post

      [Read more...]
    MySQL Workbench 6.0: Home Screen
    Employee_Team +1 Vote Up -0Vote Down

    The home screen of MySQL Workbench is the first thing you see when you start up the application and it’s therefor an important hub to quickly reach important parts or do repeating tasks like opening certain connections. This article describes the home screen in some detail with additional info and tips.

    There are 3 areas with the connection area being the biggest one which you can also expand by resizing the application window. In the rare case you need a very small window or have many entries each area has a paging control to flip between different parts of a listing.

    Shortcuts – a direct wire to your plugins, docs and support sites

    The shortcuts section is what the starters used to be in pre-6.0

      [Read more...]
    How to Build MySQL 5.7 on Windows from Source Code
    +2 Vote Up -0Vote Down

    I just installed 5.7.1 on Windows and next up was to build it from source on Windows, so that’s what I did, and thought I’d share the steps.

    ** Prerequisites **

    1. Install Microsoft Visual Studio (I installed VS 2010 Express – free)
    2. Install cmake
    3. Install bison (make sure no spaces in path)

    ** Build Instructions **

    cd c:\mysql\mysql-5.7.1
    mkdir bld
    cd bld
    cmake ..
    cmake --build . --config relwithdebinfo --target package

    And here is the full output for anyone who might be interested:

    C:\Windows\system32>cd C:\mysql\mysql-5.7.1
    
    C:\mysql\mysql-5.7.1>mkdir bld
    
    C:\mysql\mysql-5.7.1>cd bld
    
    C:\mysql\mysql-5.7.1\bld>cmake ..
    -- Building for: Visual Studio 10
    -- Running cmake version 2.8.11.1
    -- Configuring with MAX_INDEXES = 64U
    -- The C compiler identification is
      [Read more...]
    Deciding whether or not to make MySQL durable
    +0 Vote Up -0Vote Down

    Today I had intended to talk about my approach and thought process in configuring a fresh MySQL server running 5.6 with the InnoDB storage engine. However, it didn’t quite work out that way. I managed to get side-tracked by decision #0 - whether or not durability is important.

    Introduction

    By default, MySQL is configured to lie to you. That is that when you modify data there are no guarantees that your changes will be able to survive a catastrophic failure, or to put in simple terms: a power loss. The advantage of doing this, is MySQL is able to perform additional buffering and merging and consequently achieve better performance. However, the downside is also very clear: losing data is problematic, so you need to decide what is appropriate for your

      [Read more...]
    First Week in China: Build a new Dev Environment
    +0 Vote Up -0Vote Down
    I see my role as enabling others. When I was a pure awesome DBA in the early 2000s I enabled developers and customers of a companies product by making mySQL fault-tolerant and fast. As I moved up the stack as an Architect while still holding onto my roots as a DBA-I kept my DBA discipline by enabling my team and company through all the knowledge I garnered.
    The first thing I identified in China that can really help my team-members is making a new development environment. The reason, the production and dev environments are wildly different. Dev is on Windows while production runs various flavors of Linux's 2.6 Kernel-mostly Centos-6. Additionally when the code is ready to be push to what I like to call pre-integration servers-meaning the code is not checked in but copied to a test server then checked in if the tests past. As a result developers spend time
      [Read more...]
    MySQL man pages are no longer GPL (UPDATED)
    +8 Vote Up -4Vote Down
    Hat tip to Colin Charles at MariaDB for this: http://blog.mariadb.org/mysql-man-pages-silently-relicensed-away-from-gpl Why is this important?  The MySQL documentation already has a restrictive license.  This means that it’s illegal to redistribute the MySQL documentation.  As a counterexample, the PHP documentation is licensed under a Creative Commons Attribution license, and there are many mirrors of it.  If one [...]
    Closing the unique index null loophole
    +0 Vote Up -0Vote Down

    As documented in the MySQL Reference Manual:

    a UNIQUE index permits multiple NULL values for columns that can contain NULL.

    There are many scenarios in which this behavior is desirable. For example imagine you create a user table and require an email address, but you want username to be optional. You make the username column nullable, but you also want to make sure all non-null values in the column are unique, so it makes sense to add a UNIQUE INDEX. If the UNIQUE INDEX didn't allow multiple NULL values then you would need to move the username column to a separate table in order to both maintain uniqueness and allow users without usernames.

    But there are also plenty of scenarios where this behavior can cause

      [Read more...]
    MySQL Workbench Tunneling to Socket File only servers
    Employee_Team +1 Vote Up -0Vote Down

    Brandon Johnson at Mozilla has posted a nice tip on how to use MySQL Workbench SSH tunneling with MySQL servers configured to accept only Unix Socket File connections (no TCP/IP). Head over there for more info about how to use the “socat” utility to bridge a SSH tunnel from WB to a socket only MySQL.

    On operating system upgrades and a packager’s nightmare
    +1 Vote Up -0Vote Down

    A fairy tale

    Once upon a time I did an operating system upgrade, a minor one that should do no harm, but just get me up to date by fixing any bugs in the version I had been using. It seemed like a good idea.

    All seemed to be fine. I use a package provided by an external vendor and not the one produced by the operating system provider as this vendor provides a newer version of the package and I need that. The vendor has to make his package fit in the os environment his package is built for and normally does a pretty good job.

    I use automation to build my systems and when I built a new one some issues appeared. Related to the new version of the OS the provider had enhanced one of his packages and the installation pulled in new dependencies. The install of the external package I use then broke as it conflicted with the new dependency

      [Read more...]
    Continuent Tungsten Replicator 2.1 Now Available
    +2 Vote Up -0Vote Down
    Continuent Tungsten Replicator 2.1 is now available for download at www.continuent.com/software and http://code.google.com/p/tungsten-replicator/downloads/list.  Tungsten Replicator is a high performance, open source, data replication engine for MySQL and Oracle, released under a GPL V2 license. Tungsten Replicator has all the features you expect from enterprise-class data replication products
    MySQL man pages silently relicensed away from GPL
    +7 Vote Up -3Vote Down

    It has recently been brought to our attention that the MySQL man pages have been relicensed. The change was made rather silently going from MySQL 5.5.30 to MySQL 5.5.31. This affects all pages in the man/ directory of the source code.

    You can tell the changes have come during this short timeframe (5.5.30->5.5.31). The old manual pages were released under the following license:

    This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

    The new man pages (following 5.5.31 and greater – still valid for 5.5.32) are released under the following license:

    This software and related documentation are provided under a license agreement containing restrictions on use

      [Read more...]
    Troubleshooting Building MariaDB 5.1 on Windows
    +2 Vote Up -0Vote Down

    This is a follow-up, troubleshooting article that goes hand-in-hand with my “Building MariaDB 5.1 on Windows Revisited” post, and covers some problems and their solutions that one might encounter when attempting to build MariaDB from source code on Microsoft Windows.

    The first error I ran into was this, on my main compile step (i.e., the 2nd cmake command):

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp
    Common.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
    [C:\mysql\mariadb-5.1.67\bld\scripts\GenFixPrivs.vcxproj]

    That in itself doesn’t tell us too much. Searching the full compile output, we find:

    Generating ../../scripts/mysql_fix_privilege_tables.sql
    The system cannot find the file specified.
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp
    Common.targets(151,5):
      [Read more...]
    Building MariaDB 5.1 on Windows Revisited
    +1 Vote Up -0Vote Down

    I previously wrote an article on Building MariaDB 5.1 on Windows, but it was about 1.5 years ago (for 5.1.60; this is for 5.1.67), so I wanted to update this a little since I’ve built it entirely from the command-line this time (as well as highlight a couple problems/solutions – which I’ll cover in a subsequent troubleshooting post). This process it quite similar to my steps for building MariaDB 5.5 and MariaDB 10.0, however it’s slightly different since 5.1 requires you run the configure.js script before running cmake. Aside from that though, things are mostly the same.

    Here is the full procedure:

    Download 5.1.67
      [Read more...]
    MariaDB Foundation Becomes OIN Licensee
    +5 Vote Up -2Vote Down

    The MariaDB Foundation Board has now been meeting for a few months and we have been gradually taking steps to establish the Foundation as an independent organisation with member-led governance. The Board has asked me, as CEO, to provide regular updates on our progress here on the MariaDB Blog, so watch for posts in the Foundation category.

    I’ve a larger news update in preparation for next week, but first a news item about our relationship with the wider community. Given the threat software patents pose to all free and open source developers, it’s important to use every defence available as well as to unite to frustrate patent aggressors. To that end, the MariaDB Foundation has become a licensee of the Open

      [Read more...]
    MySQL Cluster 7.3 is now Generally Available – an overview
    Employee +5 Vote Up -0Vote Down

    MySQL Cluster 7.3 has now been declared GA! This means that you can deploy it in your live systems and get support from Oracle.

    This post briefly describes the main new features in the release; for a deeper dive, refer to the What’s new in MySQL Cluster 7.3 white paper (http://www.mysql.com/why-mysql/white-papers/mysql-cluster-new-features-whitepaper/" target="New features in MySQL Cluster 7.3) and the more specialised blog posts that you’ll find links to from this post.

    I’ll also be giving more details in the MySQL Cluster 7.3 Webinar

      [Read more...]
    Foreign Keys in MySQL Cluster
    Employee +13 Vote Up -0Vote Down

    Foreign Key constraints between tables

    The newly announced GA of MySQL Cluster 7.3 (7.3.2) builds upon second DMR (7.3.1 m2) released earlier in the year which added Foreign Keys to MySQL Cluster. Foreign Keys is a feature requested by many, many people and has often been cited as the reason for not being able to replace InnoDB with MySQL Cluster when they needed the extra availability or scalability.

    Note that this post is an up-version of the original – and was first published with the 7.3 labs release in June 2012.

    What’s a Foreign Key

    The majority of readers who are already

      [Read more...]
    MySQL Cluster 7.3 GA – Includes MySQL Cluster Auto-Installer
    Employee +6 Vote Up -0Vote Down

    MySQL Cluster 7.3 has just been declared Generally Available (and with it the new MySQL Cluster Auto-Installer) – download it from here.

    Deploying a well configured cluster has just got a lot easier! Oracle have released a new auto-installer/configurator for MySQL Cluster that makes the processes extremely simple while making sure that the cluster is well configured for your application. A single command launches the web-based wizard which then steps you through configuring the cluster; to keep things even simpler, it will automatically detect the resources on your target machines and use these results together with the type of workload you specify in order to determine values for the key configuration

      [Read more...]
    Using JavaScript and Node.js with MySQL Cluster – First steps
    Employee +5 Vote Up -0Vote Down

    We’re very pleased to announce that MySQL Cluster 7.3 has gone GA; for a full run-down of the new features and enhancements, take a look at the "MySQL Cluster 7.3 New Features for Internet-Scale Performance with Carrier-Grade Availability" white paper (http://www.mysql.com/why-mysql/white-papers/mysql-cluster-7-2-new-features-whitepaper/) but this post will focus on just one of the features – the MySQL Cluster JavaScript Driver for Node.js. The post will step you through setting everything up so that you can get your first Node.js code reading and writing from MySQL Cluster.

      [Read more...]
    MySQL Cluster 7.3 GA: Increasing Developer Flexibility and Simplicity
    +1 Vote Up -0Vote Down
    The MySQL team at Oracle are excited to announce the immediate availability of the MySQL Cluster 7.3 Development Milestone Release GA release. Some might call MySQL Cluster 7.3 "the foreign keys release" - and sure enough it is a major engineering achievement to build a distributed database that enforces referential integrity across a shared-nothing cluster, while maintaining ACID compliance and cross-shard JOINs. But MySQL Cluster 7.3 is so much more as well. The design focus has been on enabling developer agility - making it simpler and faster than ever to enhance new services with a highly scalable, fault tolerant, real-time database - with minimum development or operational effort.
    Installing MySQL 5.7.1 (Milestone Release) on Windows 7
    +3 Vote Up -0Vote Down

    I wanted install MySQL 5.7.1 (1st Milestone Release) on Windows 7 and test it out a bit, so I did, and since things didn’t go as smooth as expected, I thought I’d share my experience, in case anyone else runs into the same issues.

    I downloaded the .msi (mysql-5.7.1-m11-winx64.msi) from http://dev.mysql.com/downloads/mysql/ (then click the “Developmental Releases” tab) and installed it following the prompts. That seemed to complete fine, which was great. However, that was it – and not in a good way. I mean, the “installer” basically only unpacked the files to a location.

    I was expecting the “configuration” tool to run, but it didn’t. It was not installed, and not an option.

    I quickly read through the 5.7.1 changelog and found the config tool is not part of the

      [Read more...]
    MySQL Cluster 7.3
    +4 Vote Up -0Vote Down
    MySQL Cluster 7.3 (7.3.2 GA, published on Tuesday, 18 Jun 2013)
    Showing entries 1 to 30 of 29843 Next 30 Older Entries

    Planet MySQL © 1995, 2013, Oracle Corporation and/or its affiliates   Legal Policies | Your Privacy Rights | Terms of Use

    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.