My parents had found a box of old stuff which they delivered to me and I went through yesterday. For instance, did you know that I appeared on a photo of Kellogs Frosties (with Tony the Tiger) in 1995! We have several of those boxes still saved, empty of course. No, I'm not a celebrity. I was in the audience of a hockey game in Lillehammer Olympics which they used on their boxes in 1995. All the more memorable then, since 1995 is still the one and only year that Finland won the World Championships!
[HoneyMonitor is a GUI for MySQL™. Server Administration, Database and Database Objects Administration, Code Development, Server Monitoring, Performance Monitoring, Performance Auditing. Read more on http://www.honeysoftware.com/]
This is a short tutorial on the features implemented in HoneyMonitor for the use and administration of Table Logs in MySQL™ 5.1 . It could be useful for Users who are new to the product and want to get start with it or to whom want to learn the basis of Table Logging in MySQL™ 5.1.
Contents
1. Introduction
2. Brief Introduction to the Server Logs Management
Window
3. The General Log Table
4. General Log Administration
5. General Log Data: Selecting, Sorting, Filtering Log Data
6. Quick Tour of the other features of the Server Logs
Management Window
7. Other Resources …
While working for a client, I had need to produce canned results of certain different criteria, recording the result in a table for later usage, and keep the position within each result.
Knowing no way to do this via a single INSERT INTO … SELECT statement, I reverted to using a MySQL Stored Procedure. For example, using a sample I_S query and the following snippet:
...
DECLARE list CURSOR FOR SELECT select table_name from information_schema.tables where table_schema='INFORMATION_SCHEMA';
DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done=TRUE;
OPEN list;
SET result_position = 1;
SET done = FALSE;
lab: LOOP
FETCH list INTO table_name;
IF done THEN
CLOSE list;
LEAVE lab;
END IF;
INSERT INTO summary_table(val,pos) VALUES (table_name,result_position);
SET result_position = result_position + 1;
END LOOP;
However, in reviewing with another colleague after writing some 10+ different …
[Read more]
Note: This article is about the WHERE extension to
SHOW. I specifically use SHOW STATUS as
an example, but WHERE is an extension to many
SHOW statements.
Often DBAs will assess the health of a system by looking at some
of the status variables returned by SHOW GLOBAL
STATUS (specifying GLOBAL is important;
remember that SHOW STATUS is the same as SHOW
SESSION STATUS).
There are many status variables that SHOW GLOBAL
STATUS returns. (SHOW GLOBAL STATUS on a
Windows machine, MySQL version 5.0.67 returned 249, 5.1.22
returned 256 and 6.0.6-alpha returned 295 status variables!). I
have used the SHOW STATUS LIKE syntax to help give
me the output I really want, particularly when I forget the exact
names of the status variables I am looking for.
But I did not know of a way to …
[Read more]
I just ripped thru the 3 week tall stack of postal mail that was
waiting for me at home.
The most exciting thing was a big stiff envelope from Julian
Cash. I can always tell when something is from him, the way he
joyfully hacks on the post office stands out.
Inside was my copy of The MySQL Community, since he had run out
when he was giving them to the people in the book at OScon.
You can get your own copy here.
Usually unused indexes are devil, they waste diskspace, cache, they make INSERT / DELETE / UPDATE operations slower and what makes them worse - it is hard to find them.
But now ( with userstatsV2.patch) you can find all unused indexes (since last restart of mysqld) by single query
PLAIN TEXT SQL:
- SELECT DISTINCT s.TABLE_SCHEMA, s.TABLE_NAME, s.INDEX_NAME
- FROM information_schema.statistics `s` LEFT JOIN information_schema.index_statistics IS
- ON (s.TABLE_SCHEMA = IS.TABLE_SCHEMA AND
- s.TABLE_NAME=IS.TABLE_NAME AND
- s.INDEX_NAME=IS.INDEX_NAME)
- WHERE IS.TABLE_SCHEMA IS NULL;
PLAIN TEXT SQL:
- …
Agenda:
* Red Hat buys Qumranet
* Google’s Chrome browser
* Status of MySQL founder and CTO at Sun
iTunes or direct download (26:30, 6.1MB)
This Monday, September 8th, the Boston MySQL User Group broke our 2-month summer hiatus with a presentation on MySQL Views.
The slides can be downloaded from http://www.technocation.org/files/doc/2008_09_Views.pdf -- 89 kB, .pdf format.
The 199 Mb .flv file can be downloaded at http://technocation.org/node/621/download or played directly in your browser at http://technocation.org/node/621/play.
The presentation covers:
Recently Google published V2 release of patches, one of them
user_statistics we use in our releases.
New features are quite interesting so we decided to port it to
fresh releases of MySQL. Features includes:
- New statistics per user (Cpu_time, Bytes_received, Bytes_sent, etc)
- New command SHOW CLIENT_STATISTICS, which shows statistics per client's hostname, not per user
- FLUSH USER_ and CLIENT_STATISTICS commands
Our port includes:
- INFORMATION_SCHEMA tables - USER_STATISTICS, CLIENT_STATISTICS, INDEX_STATISTICS, TABLE_STATISTICS
- Access protection - USER_STATISTICS, CLIENT_STATISTICS available only for user with SUPER or PROCESS privileges. INDEX_STATISTICS, TABLE_STATISTICS shows only information of tables that current user has access to (SELECT privileges required). This is important for hosting providers
Here is example …
[Read more]What bug makes you to recommend upgrading most frequently ? For me it is this bug which makes it quite painful to automate various replication tasks.
It is not the most critical bug by far but this makes it worse - critical bugs would usually cause upgrades already or were worked around while such stuff as causing things like "sometimes my slave clone script does not work" may hang on for years.
Entry posted by peter | One comment
[Read more]