Born in Northern Norway 41 years ago and Lars has lived in Trondheim for the last 22 years. He is a Physicist by education, has a master degree on semiconductor heterojunctures and has earned a PhD on high temperature superconductors. He worked briefly on nuclear power fuel optimization and petroleum related rock mechanics before joining Clustra in the year 2000, which was acquired by Sun Microsystems in 2002. Clustra was a database software vendor that specialized in clustered, high-availability databases that were required by telecoms and service providers.
So lets say you have .frm file for the table and you need to recover CREATE TABLE statement for this table. In particular when we do Innodb Recovery we often get .frm files and some mess in the Innodb tablespace from which we have to get data from. Of course we could relay on old backups (and we do ask for them for a different reason anyway) but there is never guaranty there were no schema changes in between.
So how to recover CREATE TABLE from .frm file ?
Recovering from .frm for Innodb Table
If we simply copy .frm file back to the database we will see the following MySQL creative error message:
PLAIN TEXT SQL:
- mysql> SHOW TABLES; …
Upgraded VirtualBox and booted up my OpenSolaris VM. VirtualBox 2.1.0 finally fixes the bug where if 127.0.0.1 was in resolv.conf on the host - no DNS for you in the guest (unless in the guest you were running a DNS server).
Haven’t tried it yet… but OpenGL Accelleration makes at least a checkbox appearance in VirtualBox 2.1…. so that could be rather awesome.
Going a lot better with OpenSolaris 2008.11 than previous releases.. It looks like it might be quite easy to get to the stage of building Drizzle on it.
Just figured out how to change to Dvorak! Yay, I can type again! (Go to Input Methods preference panel and add US/DVORAK as a language, move it to the top, and enable the input method application and do it that way).
Currently installing sunstudioexpress. Why not gcc? I’m pretty sure the version in OpenSolaris is still ancient (so won’t build drizzle) and Sun Studio does produce different warnings …
[Read more]Just saw a brief “this is how it’s currently working” on Martin’s implementation of the SQL frontend to the NDB$INFO work.
It’s awesome.
You only get one chance to make a first impression. I would think the following tips would be common sense, yet I am surprised every day.When on a phone interview, don't put the interviewer on hold.I don't mind calling you on your cell, but if the call drops, you're done.I know you might be nervous, but don't cut me off in mid-sentence.When you take my call, don't be driving in a car.I don't
More and more people are lending advice to the MySQL guys at Sun (not even mentioning the level of fact based slapping its getting along the way). I think there is one important thing missing in this advice, Sun has its feet in 3 RDBMS products: MySQL, Drizzle and PostgreSQL. Even if they paid a 1B USD for the first, the other two are important to remember as well. Actually Drizzle is mentioned a lot in this advice, but PostgreSQL is oddly absent. IMHO MySQL serves a market quite perfectly at this point and I do not see this changing in the next few years.
There are annoyances all around, but the fact of the matter is that we know them well and they do not stop us from …
[Read more]
In case you were wondering, after seeing this self-defined tutorial, backing up MySQL 5.1
partitioned tables does not require any particular additional
technology.
This tutorial presents MySQL 5.1 in a short paragraph, and then
starts talking about a commercial backup application, as if it
were the only way of backing up partitioned tables.
The title, for sure, is misleading. Backing Up MySQL
Partitioned Tables. Reading such a title, readers expect
either a list of possible solutions, or being presented with the
only existing way of dealing with this task. Instead, the only
instructions that you get is how to use the above mentioned tool,
which is definitely not the only way of getting the job done. It
is also doubly misleading because, since partitioning is a new
technology, the casual reader may think "oh? What's peculiar
with …
I have been using libumem
and
LD_PRELOAD
to track down memory allocation problems
in a lot of applications over the years, and I just love the
runtime linker on Solaris (AFAIK you will find some of the
features on Linux as well). The fact that I can load other
libraries that replace or add functionality of the program is
just great. If you haven't read it already I would encourage you
to read the man page for ld.so.1
. If you are a developer
using Solaris and haven't used libumem
to hunt down
memory bugs, you should read this blog by Adam Leventhal.
Last week I spent an evening …
[Read more]The Monolith Toolkit of scripts for DBA routines. 0.4.3 has been released. You can download it here: http://code.google.com/p/monolith-toolkit/
Some information on the toolkit and what it contains:
- mt-backup-parallel -> runs mysql backups in parallel super fast, has lots of reporting features
- mt-check-replication -> script to report on replication status for slave servers
- mt-rhcluster-check-filesystems -> reports on redhat cluster filesystems (for mysql active/passive clustering)
- mt-rhcluster-script-wrapper -> wrapper script for running any of these scripts on a redhat cluster, chooses the active node to run the script on
- mt-connections-log -> logs connections to mysql to disk, reports on threshold overages
- mt-flush-tables-sequence -> runs through schema.tables to flush in …
After getting sysbench running properly with a scalable memory allocator (see last post), I can now return to what I was originally testing - what memory allocator is best for the 5.1 server (mysqld).
This stems out of studies I have made of some patches that have been released by Google. You can read about the work Google has been doing here.
I decided I wanted to test a number of configurations based on the MySQL community source, 5.1.28-rc, namely:
- The baseline - no Google SMP patch, default memory allocator (5.1.28-rc)
- With Google SMP patch, mem0pool enabled, no custom malloc (pool)
- With Google SMP patch, mem0pool enabled, linked with mtmalloc (pool-mtmalloc)
- With Google SMP patch, mem0pool disabled, linked with tcmalloc (TCMalloc)
- With Google SMP patch, mem0pool …