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 中文
Previous 30 Newer Entries Showing entries 91 to 120 of 744 Next 30 Older Entries

Displaying posts with tag: Uncategorized (reset)

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...]
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...]
ANALYZE TABLE is replicated. RTFM.
+0 Vote Up -0Vote Down

Sometimes, I make mistakes. It’s true. That can be difficult for us Systems Engineering-types to say, but I try to distance myself from my ego and embrace the mistakes because I often learn the most from them. ..Blah, blah, school of hard knocks, blah, blah…. Usually my mistakes aren’t big enough to cause any visible impact, but this one took the site out for 10 minutes during a period of peak traffic due to a confluence of events.

Doh!

Here is how it went down…

We have an issue where MySQL table statistics are occasionally getting out of whack, usually after a batch operation. This causes bad explain plans, which in turn cause impossibly slow queries. An ANALYZE TABLE (or even SHOW CREATE INDEX) resolves the issue immediately, but I prefer not get woken up at 4AM by long running query alerts when my family and I are trying to sleep. As a

  [Read more...]
See you in Austin March 6th at Society for Information Technoligy and Teacher Education
Employee +3 Vote Up -0Vote Down

I will be in Austin for SITE presenting Teaching Database Concepts with Open Source Software on Wednesday, March 6th. So if you are a teacher attending SITE, please come attend my session. And bring your boots so we can hit 6th Street afterwards!



  [Read more...]
MySQL Embedded Online Forum — Tuesday
Employee +1 Vote Up -0Vote Down

MySQL Embedded Online Forum

Tuesday, January 31, 2012 9:00AM PST – 12:00 PM PST

Think You Know MySQL? Get the Facts.

MySQL is even better than you think. According to the experts, it’s easier to use and it’s more capable than most ISVs / OEMs realize, and by taking a few tried-and-tested steps before shipping your MySQL-embedded products, you can lower your product’s costs and increase its performance.

Join our expert-created and delivered MySQL Embedded Online Forum to learn:

Why MySQL is a great embedded database for startups as well as the largest software, hardware, and appliance

  [Read more...]
Oracle Technology Network Developer Day MySQL – Singapore
Employee +2 Vote Up -1Vote Down

Tuesday, February 21, 2012
1:30 PM – 7:00 PM
(registration starts 1:00 p.m.)

Raffles Hotel Singapore
Casuarina Suite B, Level 3
1 Beach Road, 189673, Singapore

Please Register Online

The MySQL Developer Day is a one-stop shop for you to learn all the essential skills about MySQL. In this free, half-day seminar, we will cover everything you need to know to successfully design, develop, and manage your MySQL databases. You’ll also learn the guidelines and best practices in performance tuning and scalability.

Attend this event and gain the knowledge to:

Develop your new applications cost-effectively using MySQL
Improve





  [Read more...]
Statistics counters for Multi Range Read
+6 Vote Up -0Vote Down

MariaDB 5.3 has now three statistics counters for Multi Range Read optimization:

MariaDB [test]> show status like 'Handler_mrr%';
+-------------------------------+-------+
| Variable_name                 | Value |
+-------------------------------+-------+
| Handler_mrr_extra_key_sorts   | 0     |
| Handler_mrr_extra_rowid_sorts | 0     |
| Handler_mrr_init              | 0     |
+-------------------------------+-------+
3 rows in set (0.08 sec)

I’ve just added the first two. The reason for having them is as follows: the point of MRR is to provide speedup over regular execution by doing reads in disk order. In order to make reads in disk order, MRR needs buffer space where it accumulates and sorts read requests. If there are too many read requests to fit into the buffer, MRR will make multiple accumulate-sort-read

  [Read more...]
Transparent Encryption for NDB nodes (MySQL Cluster) – a First Look
+4 Vote Up -0Vote Down

MySQL Cluster usage has certainly continued to spread and recently accelerate well beyond its initial telco vertical roots into Healthcare, Financial Services, SaaS and more. With those additions it certainly becomes desirable for many to provide transparent encryption on the NDB nodes where the data, logs, and checkpoints that write to disk. I’ll not go into all those reasons in this blog, but certainly there are plenty, these white papers provide  more details, especially if you are running within hosted, managed, or cloud environments platforms.

The solution for ndb in a nutshell was straight forward:
1 Set up Gazzang ezNcrypt Flex Platform
2 Stop the ndb process prior to encrypting the ndb_data directory
3 Encrypt the ndb_data directory




  [Read more...]
MySQL and Friends devroom at FOSDEM 2012
+1 Vote Up -0Vote Down

The votes have been counted and now there is a schedule for MySQL and Friends devroom at FOSDEM 2012.

I’m giving two talks:

On complex optimizations and optimizer hints
+3 Vote Up -0Vote Down

In an ideal world, you should never need to use optimizer hints. In the real world, hints are necessary. We needed hints even before we’ve made a release. The first requests came from our Quality engineer who complained about it being difficult to hit particular join orders while using a particular subquery strategy.

So, why not add the needed hints? MySQL already has the STRAIGHT_JOIN and FORCE INDEX, you can add more as required. The problem is that once you have transformations that change the query to be far enough from the original SQL, you don’t have a “natural” place or syntax for hints anymore.

For example, if you have a join

SELECT ... FROM table1, table2, table3 WHERE ....

and want a join order of (table2, table3, table1), you can write it as

SELECT ... FROM table2 STRAIGHT_JOIN table3 STRAIGHT_JOIN

  [Read more...]
MariaDB 5.3: documentation updated
+7 Vote Up -0Vote Down

With MariaDB 5.3.3 Release Candidate out of the door, I could give some attention to documentation and improve the master What is MariaDB 5.3 page and pages linked from it.

I think the part about subquery optimizations should be fairly easy to read now, and our tech writer Daniel Bartholomew also did a pass over it. If you have a picture-type mind like I do, there is plenty of pictures, including the Subquery optimizations map.

For now, my goal was to just have a descriptions of all optimizations in place. We have also done substantial amount of benchmarking, but that data still waits to be processed and published.

Java Generics in Oracle
+0 Vote Up -0Vote Down

Somebody posed the question about using a Comparator in the sorting examples provided in this earlier post on Updating Table View Columns (columns using a Varray or Nested Table of a single scalar data type). It seems the individual thought that you can’t use Java Generics inside an Oracle Database 11g’s Java libraries. It’s seems odd since they’ve been around since Java 5.

You can use Generics like those shown in the following example. It builds on explanation from the prior post. If you want to get the whole set of facts click the link above but you should have all the code you need in this post.

An example like this requires you first define a collection of strings in the database. This one uses the following

  [Read more...]
MySQL Tech Tours — Santa Clara, El Segundo & Raleigh
Employee +2 Vote Up -0Vote Down

MySQL Tech Tour Event – Santa Clara, CA
Thursday, February 9, 2012
http://www.oracle.com/go/?&Src=7314534&Act=247&pcode=WWMK11042736MPP125

MySQL Tech Tour Event – El Segundo, CA
Wednesday, February 8, 2012
http://www.oracle.com/go/?&Src=7314534&Act=249&pcode=WWMK11042736MPP127

MySQL Tech Tour Event – Raleigh, NC
Thursday, February 2, 2012
http://www.oracle.com/go/?&Src=7314534&Act=248&pcode=WWMK11042736MPP126







  [Read more...]
An Oracle DBA meets MySQL
+0 Vote Up -0Vote Down

I am an Oracle database administrator and over the last few years I have found myself becoming more involved in MySQL database administration.

I knew absolutely nothing about MySQL and had to figure it out using books and blogs.

I realised there must be many other people in my position so I developed a presentation titled “MySQL: the least an Oracle DBA needs to know”. My aim was to get people up to speed with the basics as quickly and simply as possible, mostly through live demonstrations.

I have had the privilege of presenting this for Oracle user groups in the UK, USA, New Zealand and Finland. It’s a great feeling as the audience moves from sceptical to excited, with lots of “Can it do ….?” questions at the end of the presentation.

To accompany the presentation I wrote

  [Read more...]
Help needed with EXPLAIN and EXPLAIN EXTENDED examples
Employee +2 Vote Up -0Vote Down

I am working on a presentation for the San Francisco MySQL Users Group on using EXPLAIN and EXPLAIN EXTENDED. But I need some help from the MySQL Community. Do you have any good examples of EXPLAIN EXTENDED providing unexpected results when compared to the original query? Please post your statement and possibly a SHOW CREATE TABLE below or send them to david.stokes AT Oracle.

Thanks!



  [Read more...]
MySQL at FOSDEM 2012: time to vote for program!
+5 Vote Up -0Vote Down

The deadline for proposals has passed, and there are 37 talk proposals and 12 time slots. In order to have the best possible program, we need your help. There is public voting on proposals, votes are accepted via twitter or via email. Please Vote for MySQL and Friends at FOSDEM 2012 devroom talks. Thank you!

Five-Six-Four — Dave and Keith will soon head out the door!
Employee +1 Vote Up -0Vote Down

MySQL 5.6.4 & MySQL Cluster 7.2 availbale from http://Labs.MySQL.Com

MySQL 5.6.4 Development Milestones are ready for your review. This week there are seven 5.6.4 releases to try plus MySQL Cluster 7.2! So try the Binary Log API, Binary Log Group Commit, Global Transaction IDs, InnoDB features, InnoDB Full Text Search, Enhanced Performance Schema, or Memcached/InnoDB versions this holiday season. And let the developers know your feedback please!

And very soon fellow MySQL Community Manager Keith Larson and I will be hitting the road, First stop is the Southern California Linux

  [Read more...]
On protecting MySQL from unwanted use of –skip_grant_tables
+1 Vote Up -0Vote Down

If a DBA needs to reset the mysql root password – one method of doing this is to run mysqld with -skip-grant-tables as a command line parameter. This is a bad practice for many reasons and as a DBA friend of mine says – it’s a lot like locking your door with the window open. If you are using mysql for especially secure data you should consider your options.

One option, and likely preferred, is to replace the default mysql from various sources with one built with this feature disabled – see http://dev.mysql.com/doc/refman/5.1/en/source-configuration-options.html#option_configure_disable-grant-options

I am not aware of any distro’s that are built with this option – but seems like a fair

  [Read more...]
Holiday Presents for MySQL DBAs
Employee +2 Vote Up -0Vote Down

Normally I write for the MySQL DBA audience. But this blog entry is different. Print out a hard copy and hand it to friends and family when they ask you what sort of presents you want for Christmas, Hanukkah, Festivus or other end of the year gift exchange instead of grunting ‘I do not know1‘ and ending up with something you will have to pretend to like.

Yes, your MySQL DBA is hard to shop for during the holiday season. Their needs are few2 or expensive. So what can you get them on the cheap that will make them happy?

Gift Ideas

  • T-shirts are probably the majority of your DBA’s attire, despite your best efforts.
  • Zazzle offers a
  •   [Read more...]
    Linux Journal Readers Choice Award for Best Database — MySQL
    Employee +6 Vote Up -0Vote Down

    MySQL is the 2011 Readers Choice Award for Best Database.

    It may not be the most-exciting topic around, but databases make the world go round. MySQL with its dolphin mascot takes first place again this year, with more than twice as many votes as its closest competition, PostgreSQL.

    However, I do take issue with the It may not be the most-exciting topic around quip. MySQL is very exciting!



      [Read more...]
    Collaborate 12 — Mandalay Bay Las Vegas
    Employee +2 Vote Up -0Vote Down

    Keith Larson and I will be presenting MySQL for Oracle DBAs or How to Speak MySQL for beginners at Collaborate 12 in April at the Mandalay Bay hotel in Las Vegas.



      [Read more...]
    Call for papers: “MySQL and Friends” devroom at FOSDEM 2012
    +1 Vote Up -0Vote Down

    Following the tradition, there will be a “MySQL and Friends” devroom at FOSDEM 2012. The devroom is scheduled for Sunday 5th February 2012, whole day. If you are interested to give a talk, please submit it before December 26th through this submission form.

    Link to original announcement by Frédéric Descamps

    Finding Problem Queries @ ideeli Tech Blog
    +0 Vote Up -0Vote Down

    I work at ideeli and wrote up a two parter for our Tech Blog about finding problem queries in MySQL…

    Finding Problem Queries, Part 1: The Slow Stuff

    MySQL Tech Tour Event – Montreal
    Employee +2 Vote Up -0Vote Down

    Register now for the MySQL Tech Tour Event – Montreal.

    Please join us for our first Canadian MySQL Tech Tour event event hosted by Oracle MySQL experts and learn more about Oracle’s strategy for MySQL, including continued investment in the world’s most popular open source database. Register for either Session 1 or Session 2 of this Tech Tour Event.

    The MySQL experts will be on hand to introduce new features in the MySQL 5.5 GA release; provide details on MySQL 5.6.; and discuss the new commercial extensions – MySQL Thread Pool (performance), MySQL Security (authentication) and MySQL HA. Finally, our MySQL Experts will cover the integration of MySQL into the Oracle environment, and NoSQL access

      [Read more...]
    Automatically Download MySQL Enterprise Monitor Graphs as PNG Files Using Perl
    +0 Vote Up -0Vote Down

    I was giving a presentation of the MySQL’s Enterprise Monitor (http://www.mysql.com/products/enterprise/monitor.html)* application to a client recently. I was demonstrating the “graphs” section of MEM, where you can monitor MySQL sessions, connections, replication latency and more with 60+ graphs. Usually, you view the graphs from within the MEM Enterprise Dashboard (via a web browser). But the client asked if there was a way to automatically download graphs. I wasn’t sure why he wanted to download the graphs (I didn’t ask), but I knew it wasn’t possible by using MEM alone. However, in the past I have written Perl scripts to automatically download files from web sites, so I thought I would see if it was possible with MEM.

     
    *The MySQL Enterprise Monitor (MEM)
      [Read more...]
    Writing a MariaDB PAM Authentication Plugin
    +7 Vote Up -2Vote Down

    As you may know, since version 5.2.0 (released in April 2010) we support Pluggable Authentication. Using this feature one can implement an arbitrary user authentication and account management policy, completely replacing built-in MariaDB authentication with its username/password combination and mysql.user table.

    Also, as you might have heard, Oracle has recently released a PAM authentication plugin for MySQL. Alas, this plugin will not run on MariaDB — although the MySQL implementation of pluggable authentication is based on ours, the API is incompatible. And, being closed source, this plugin cannot be fixed to run in MariaDB. And — I’m not making it up — this plugin does not support communication between the client and the server, so even with this plugin and all the

      [Read more...]
    Using MySQL and Perl to Create, Edit and Delete Information Via a Web Page
    +0 Vote Up -0Vote Down

    A friend of mine was asking me for my recommendation of a good desktop database program to use to keep track of his inventory of cargo containers. I suggested to him that he should use MySQL and write a web page interface to do everything that he needed. He then reminded me that he is a lawyer by trade, and that he doesn’t have any computer programming experience. Then I remembered that he has almost zero computer skills. And his Texas Hold-Em skills are even worse, but I don’t mind taking his money. In his case, he should just use a notepad and a pencil. (As for the question – what is a lawyer doing with cargo containers? – that is a different story.)

    If he did decide to broaden his horizons a bit, he could easily write his own software web application for creating and storing almost any

      [Read more...]
    Bzr and launchpad tricks: firefox plugin
    +3 Vote Up -0Vote Down

    If you work with bazaar, you have seen its URIs. You can find the complete list is in the bzr help urlspec. Although I commonly use only a subset of that, like bzr+ssh://bazaar.launchpad.net/~maria-captains/maria/5.2-serg/ and http://bazaar.launchpad.net/%2Bbranch/mysql-server/5.5/.

    In addition I often use Launchpad aliases, such as lp:~maria-captains/maria/5.3-serg/, lp:maria/5.3, and lp:869001.

    And finally, there are common abbreviations that we have used in MySQL, and others that we use in MariaDB, for example bug#12345 and wl#90.

    What’s annoying, I need to remember that wl#90 corresponds to http://askmonty.org/worklog/?tid=90

      [Read more...]
    Checking on the Progress of Large DML Commands in MySQL Using Perl – Part Two
    +0 Vote Up -0Vote Down

    Part Two of Two: Checking on database activity when running a large DML (Data Manipulation Language) statement – such as INSERT, DELETE, UPDATE or SELECT.

    Part Two: Monitoring the activity via Perl and SHOW ENGINE INNODB STATUS. (part of the InnoDB Monitors)

    In part one, I showed you how to use a Perl script to insert a million rows of dummy data into a table. I needed a large database in order to test a Perl script that I would use to monitor the activity when running a large DML statement.

    The original reason for creating both of these scripts was to find a quick way to see if a large

      [Read more...]
    Checking on the Progress of Large DML Commands in MySQL Using Perl – Part One
    +1 Vote Up -0Vote Down

    Part One of Two: Checking on database activity when running a large DML (Data Manipulation Language) statement – such as INSERT, DELETE, UPDATE or SELECT.

    Part One: Inserting a million rows into a database.

    A friend of mine had asked a question – “Is there any way you can track how far you have advanced in a slow-moving ALTER or OPTIMIZE statement?”. A customer was performing some modifications on a database with tens of millions of rows, and they wanted to be able to see if the command was making any progress.

    Since the customer was using the InnoDB storage engine, I thought of a way that you could check on the progress – but only given

      [Read more...]
    Previous 30 Newer Entries Showing entries 91 to 120 of 744 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.