To have more visibility of our systems I needed a method to quickly query large sets of MySQL servers. Though there are few methods like ‘xargs -P’ and dsh, they are overkill for the SQL-only job, and simply not fast enough.
So, I hacked pmysql (274 lines of C) – a tool that is able to run queries on multiple servers in parallel. It can run SQL query on 1000 servers in under 0.1s, and scales well with larger sets of servers.
Use cases can be various – from configuration/schema checks (I
really enjoyed using information_schema), to ‘global processlist’
analysis.
Ability to crunch hundreds of megabytes of processlist info in
few seconds – priceless, so is schema verification of millions of
tables.
It is fast enough to use it as backend for some of real-time health check CGI …
[Read more]The Sakila project was designed to demonstrate all cutting-edge capabilities of dbForge Studio for MySQL such as Database Projects, Database Diagram, Data Reports, Pivot Grid, Visual Query Builder, Code Refactoring, Database Comparison and Synchronization, and also to let a user get acquainted with the mentioned functionality quickly and easily with the help of the prepared examples.
First of all, you should have MySQL server version 5.1 installed
locally (localhost).
Then launch dbForge Studio for MySQL, open Start Page and click
Sakila in the Recent Projects section (or open the Sakila project
from the File -> Recent Projects -> Sakila.mydev menu).
Open Sakila …
[Read more]In MySQL Workbench 5.2.26 a new query execution command is available, where query output is sent as text to the text Output tab of the SQL Editor. Some MySQL Workbench users liked the “Results to Text” option available in Microsoft SQL Server Management Studio. Cool thing is with a few lines of Python we implemented this command using the SQL Editor scripting API.
For full documentation on scripting and plugin development, refer to the documentation pointers page.
In this post, you will learn:
- Python script for implementing “Results to Text”
- How you can customize the script to deliver your own customized results format command.
Execute Query to Text (accessible from Query …
[Read more]For a few years now Proven Scaling has been hosting the MySQL mirror/archive at mirror.provenscaling.com, which provides mainly older MySQL releases (which have been removed from MySQL’s mirror long ago) and MySQL Enterprise releases for the last few years.
Since Proven Scaling has been winding down (and we’ve started paying the bills personally), it doesn’t really make sense for us to maintain as large of a colocation footprint as we have. We’re looking to shift things around, and the mirror is something that’s fairly painful for us to host with a small footprint. We’re hoping another MySQL community member with an already-large datacenter/bandwidth footprint will want to pick it up, where it won’t affect their bottom line so much.
I think there’s still some value in having these files be …
[Read more]From here :
Hi,[Read more]
we (MySQL Connectors Team at Oracle, well mostly Andrey in fact) have
created a few experimental extensions, hooking into mysqlnd to extend
the functionality in a more or less transparent way.
A list of these includes
* mysqlnd_sip - A plugin trying to detect SQL injections by learning
about valid queries and then validate against the known format
* mysqlnd_mc - A plugin splitting single queries over multiple
connections (distribution of workload over multiple servers;
query-splitting / multi-read)
* mysqlnd_ms - A plugin for doing master/slave read/write splitting
* possibly others might be coming, too.
These plugins were created to validate our APIs wich we are also using
for …
Important note: Please note that if you have installed a MONyog 4.0 (beta) release you cannot install this one unless first completely removing the 4.0 installation including the complete MONyog data folder.
Changes (as compared to 3.77) include:
Bug Fixes:
* Monitors/Advisors on InnoDB Deadlocks were truncating the
output message and hence in some cases, users were unable to view
both queries involved in the deadlock. This has been changed such
that the first 2048 characters of both queries are
displayed.
* On Windows 7 systems changes to MONyog’s .INI file from
external programs had no effect upon restart (as Windows reverted
the changes). Now throughout MONyog’s lifetime the .INI file will
be locked so that a user may only edit the file manually when
MONyog is not running (but users can use the MONyog interface to
change any setting while MONyog is running). Any …
So we have come to the forth and last part of this small series
on how to get started with NDB MGM API on Windows. I am planning
some more code using NDB API specifically, but that will be a
separate series.
If you haven't followed this series before, the parts before this
one were:
- MySQL Cluster on Windows - NDB API part 1 - Where I go through the basics.
- MySQL Cluster on Windows - Not so NDB oriented: Set up a dev environment - Where I show how to set up a reasonable development environment for NDB MGM API on Windows
- …
In some environments using a distro package management system may* provide benefits including handling dependencies and providing a simpler approach when there are no dedicated DBA or SA resources.
However, the incorrect use can result in pain and in this instance production downtime. Even with dedicated resources at an unnamed premium managed hosting provider, the simple mistake of assumption resulted in over 30 minutes of unplanned downtime during peak time.
One of the disadvantages of using a system such as rpm is the lack of control in managing the starting and stopping of your MySQL instance, and the second is unanticipated package dependency upgrades.
So what happened with this client. When attempting to use the MySQL client on the production server, I got the following error.
$ mysql -uxxx -p error while loading shared libraries: libmysqlclient.so.10: cannot open shared object file: No such file or …[Read more]
DBAs seem to be getting hit over the head with the NoSQL message
while trying to keep their SQL systems going. SQL does have its
place in the world1 and much of the NoSQL push seems to be a way
to get past some of SQL's limitations. But simply moving from a
proven technology and infrastructure to something new with fad
overtones is not going to make life easier for Joe Average DBA.
Redis is one of those project that will get notice
from a lot of DBAs looking for a very fast key-value
datastore.
Redis keeps the dataset in memory but writes to disk
asynchronously and reloaded when Redis is restarted. Or the data
can be saved each time a command is issued or on schedule to
minimize data loss.
Redis also has master-slave replication and setup consists of a
'slave of x.x.x.x' line in the slave's config file. And is the
only trivial thing about Redis.
…