I really wonder the reasons why you named this specific blog
post, “MySQL:
An Introduction for Oracle DBAs ? Patrick Hurley”.
In either case I personally enjoyed the post!Thanks for
your effort-Lisette
As part of the Libdrizzle Redux project I created an example tool
which was bundled with it which will connect to a MySQL server as
a slave and download the binary logs to local files. This
was developed as a quick example of what can be done with the new
binlog API.
Two things quickly became apparent:
- We shouldn't really be distributing applications in a library
- I am going to be developing more useful tools around libdrizzle and they certainly shouldn't be in the same package
- BSD is a fantastic license for a library, but I personally prefer GPLv2 for applications
With this in mind I have pulled the drizzle_binlogs utility from
Libdrizzle trunk (and therefore won't be in the 5.1.3 release)
and put it in its own repository. It has been licensed
appropriately (GPLv2) and I am already beginning to develop more
tools to go with it.
The are no source …
Recently, I had to work on improving real-time data segmentation. We had a solution in place but the performance were not so great. In some cases, getting a response back was taking a couple of minutes. In this post, I will share with how I managed to improve this.
Here is the scenario we will use to explore this problem.
You have a list of users and track their activities. You want to segment your list of users based on their activities dynamically.
Table Structure
Here is the table structure we will be using for this post.
Users
id | username | firstname | lastname |
1 | vincent.lamanna | Vincent | Lamanna |
One of my favorite features of MySQL is replication. Replication provides you with the ability to have MySQL automatically copy data from one MySQL instance to another. There are many benefits to using replication, but I just like having an extra copy of my data on another server in case the main server crashes. But if the master crashes, I can then use the MySQL mysqlfailover script to automatically failover from the master to the slave. (see my earlier post – Using the MySQL Script mysqlfailover for Automatic Failover with MySQL 5.6 GTID Replication).
MySQL Replication automatically copies the data from the main database (master) to …
[Read more]This week, we talk about Linux I/O schedulers. Ear Candy is iotop, and At the Movies is learning how to use EXPLAIN.
News
OurSQL is taking the EBU's recommendation for volume for mobile
devices. You
can find a link to a white paper titled: "On the way to loudness
nirvana".
Events
Oracle is doing a small MySQL tech tour, on January 22nd to Pleasanton, CA and on January 23rd to Belmont, CA.
Percona Server Wins Developer Week 2013 Award; Named Top Innovator in SQL Technologies Category
Percona Server has won a 2013 DeveloperWeek Best of Tech award, being named Top Innovator in the SQL Technologies category!
We’re proud to accept this award, which is determined by a combination of peer voting and review from an independent panel of judges. Thank you to everyone who voted for Percona Server!
From our press release: According to a 451 Research report titled, “MySQL vs. NoSQL and NewSQL: 2011-2015,” Percona …
[Read more]BIRT is a wonderful Business Intelligence tool that lets MySQL DBAs generate smart looking reports from from their databases. Currently they have a North American Road Show crossing the continent that provides a FREE day of training.
If you are near Tampa, Oakland, Indianapolis, Dallas, Toronto, Princeton, Minneapolis, Arlington, Chicago or Carlsbad then you should look into attending one of these classes. Some of the in-class exercises involve getting data from a sample MySQL database. I highly recommend that you attend.
yum
It’s often pain to guess package names when you need to install
stuff on, lets say, CentOS. So there is a list, although maybe
not full, of what I needed to get another VM build and run
MariaDB server and to execute at least some tests on it (all done
via yum install
):
cmake
gcc
ncurses-devel
bison
g++
gcc-c++
aclocal
automake
libtool
perl-DBD-MySQL
gdb
libaio-devel
openssl-devel
Same in one line, for lazy me:
sudo yum install cmake gcc ncurses-devel bison g++ gcc-c++
perl-DBD-MySQL gdb libaio-devel openssl-devel
To install bzr (if it’s not in the official repo):
su -c ‘rpm -Uvh
http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm’
(check the architecture)
and then can use yum install
bzr
Another story (taken …
[Read more]
well, I incremented max_allowed_packet from 16M to 512M
anyway, I got the same error on the next clean import.
so decided to find a workaround.
so, how to get the data separated from the ddl statements:
# get the tables names into the insert statement, its better to have that in file for future usage sed '/^INSERT INTO/!d;s/ VALUES.*$//' jiradb.20130118.sql | sort | uniq > tablas.como.nombres.txt
then how to get the data separated:
root@jiragg:[Fri Jan 18 15:26:33]:[/usr/local/BACKUP]$ cat make.inserts.sh #!/bin/sh # trim function thank to http://stackoverflow.com/questions/369758/how-to-trim-whitespace-from-bash-variable # and http://codesnippets.joyent.com/posts/show/1816 trim() { local var=$1 var="${var#"${var%%[![:space:]]*}"}" # remove leading whitespace characters var="${var%"${var##*[![:space:]]}"}" # remove trailing whitespace characters echo -n "$var" } while read tabname do …[Read more]
Oracle's MySQL Enterprise Edition includes the most comprehensive set of advanced features, management tools and technical support to help you reduce the cost, risk & time to deploy and manage your MySQL applications.
Access our Resource Kit to discover:
- How to boost scalability by 20x with MySQL Enterprise Scalability
- How to automatically detect and recover from failures with MySQL Enterprise High Availability
- How to eliminate security vulnerabilities, improve replication and optimize performance with the MySQL Enterprise Monitor
- How MySQL Enterprise Backup reduces the risk of data loss with …