FromDual TechFeed (de)
MySQL Questions & Answers
Table of Contents
- Search with special characters
- Why is InnoDB disabled?
- How to find MySQL system information?
- What is the difference between MySQL certified server and community server?
- MySQL monitoring
- MySQL backup
- Corrupt MyISAM table
- How to compile MySQL
- Test restore procedure
- Reset a MySQL user password
- Reset the MySQL root user password
- How to enable the InnoDB plugin
- Storage Engines shipped with MariaDB / MySQL
- Compiling MySQL Cluster ndb-test fails
- NDB information schema does not show up
- Hyper …
Taxonomy upgrade extras: Backup Restore Recovery Mysql Cluster Innodb Monitoring Lvm Myisam Snapshot Compiling Swap
Limitations of MySQL
Often asked but informations are spread around: The limitations of MySQL.
If you know any other MySQL limitations, please let us know.
Table of Contents
- General limitations of MySQL
- Limitations of MySQL 4.1
- Limitations of Joins
- Limitations of the MyISAM storage engine
- Limitations of MySQL 5.0
- Limitations of Joins
- Limitations of the MyISAM storage engine
- Limitations of InnoDB
- Limitations of MySQL 5.1
- Limitations of Joins
- Limitations of Partitions
- Limitations of MySQL Cluster
- Limitations in Galera Cluster …
Taxonomy upgrade extras: Mysql Mysql Cluster Limitation Limitations Galera General Query Log
MySQL User Defined Function (UDF) collection
I really like this new toy called UDF. So I try to provide some more, hopefully useful, functionality.
A list of what I have done up to now you can find here:
- Query and change InnoDB spin_wait_delay: udf_spin_wait_delay.tgz
- Send message to the MySQL error log: udf_log_error.tgz, works also with MySQL 5.1.42
If you have some more suggestions, please let me know. If you need some special features as UDF talk to our consulting services if they can implement it.
Get and set InnoDB spin_wait_delay
mysql> …Taxonomy upgrade extras: Udf User-Defined Function
The handler_read_* status variables
Because I do a lot of Performance Tuning gigs I get often in contact with these status variables. In the beginning I had a problem to understand them and now I have a problem to memorize the relation of the name and the meaning. Therefore I wrote this little summary:
Prepare the example
To show you the effect I have worked out a little example:
CREATE TABLE test (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
, data VARCHAR(32)
, ts TIMESTAMP
, INDEX (data)
);
INSERT INTO test
VALUES …Taxonomy upgrade extras: Mysql Handler Handler Interface Status Variables Status
Performance Tuning Key for MySQL
This MySQL Performance Tuning Key should give you a guide how to best tune you MySQL database systematically… It should also work similar for other RDBMS.
Also check our MySQL Performance Monitor
For a database configuration tuning only please look first at our MySQL database health check.
If this MySQL Database Health Check does NOT solve your problem our specialized Performance Tuning and Architecture Consultants can help you for sure!
Caution: Some recommendations are dangerous! Dangerous means …
Taxonomy upgrade extras: Mysql Performance Tuning
Hunting the core
Core files under Linux
When dealing with MySQL crashes it is very useful to get the core files for further debugging. I have collected all the informations I found about it and wrote it together here:
Find core files
# find $HOME -name "core*"
/home/oli/core.6440
# file core
core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style
See who caused the core file:
# strings core.6440 | head
CORE
CORE
mysqld
/home/mysql/product/mysql-5.1.30/bin/mysqld …Taxonomy upgrade extras: Debug Trace Core
Reading other processes memory
As you probably have experienced yet MySQL does not always provide all internal information as you might want to have them and as you are used to have from other RDBMS.
MySQL plans to improve this implementing the/a performance schema and its probably already partly done in MySQL 5.4. But who knows when this will be finished and what it contains at all…
What is not provided to me I want to gather myself… But how? Other RDBMS provide interfaces to attach applications directly to their memory to …
Taxonomy upgrade extras: Process Memory Debug Trace
MySQL Monitoring solutions
Basic solutions (CLI)
Those solutions are run from the command line (CLI):
- top (man)
- vmstat (man)
- iostat (man), mpstat (man), pidstat in package sysstat
- mytop, a Mytop Introduction
- dstat
- free (man)
- procinfo (man)
- mpstat (man)
- mTop
- InnoTop
Advanced solutions
More advanced MySQL database and host monitoring solutions with graphs and/or history and/or hints are:
| MySQL Performance Monitor | The FromDual Performance Monitor for MySQL/MariaDB is a monitoring solution based on Zabbix. It is freely … |
Taxonomy upgrade extras: Performance Tuning Mysql Monitoring Performance Monitoring Mytop Innotop
FromDual sitemap
Performance Tuning, Benchmarking, Capacity Planning and Monitoring
MySQL Database Health Check for MySQL/MariaDB
Wie der MySQL Optimizer schummelt, wenn es um MySQL Cluster geht…
How the MySQL Optimizer with MySQL Cluster is cheating you…
My thoughts about MySQL (Cluster) replication
My wish for the New Year: MySQL DBA’s, please install iostat on your servers! …
Taxonomy upgrade extras: Document Article Summary Overview Content
Profiling MySQL with oprofile
Why is is data load with LOAD DATA INFILE so much faster?
Probably the answer to this question is already known. But we want to prove it and by the way learn to deal with oprofile.
For the test MySQL 5.0.28 was used and 100k rows were loaded into a table sales which looks as follows:
CREATE TABLE sales (
sales_id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
, product_name VARCHAR(128) NOT NULL
, product_price DECIMAL(8,2) NOT NULL
, product_amount SMALLINT NOT NULL
) ENGINE = …Taxonomy upgrade extras: Mysql Profiling Oprofile Profile
Materialized Views with MySQL
Table of Contents
- What is a Materialized View?
- Implement your own Materialized Views
- Refreshing materialized views
- Hands on
- Create your own Materialized View:
- Refresh Materialized View on demand
- Refresh Materialized View immediate
- Materialized Views with snapshotting functionality
- Some performance benchmarks for our Materialized Views:
- Outlook
- Conclusion
- Literature
What is a Materialized View?
A Materialized View (MV) is the pre-calculated (materialized) result of a query. Unlike a simple VIEW the result …
Taxonomy upgrade extras: Mysql Trigger Materialized Views Materialised Views Sql/Psm
MySQL Federated Storage Engine
What is a Federated Table?
A Federated Table is a table which points to a table in an other MySQL database instance (mostly on an other server). It can be seen as a view to this remote database table. Other RDBMS have similar concepts for example database links.
What can I do with a Federated Table?
To show what you can do with a federated table let us assume the following constellation: Two MySQL databases on two different servers. The first one called provider (it provides the data) the second one called …
Taxonomy upgrade extras: Storage Engine Federated Tables General Query Log
FromDual consulting tool collection
The following tools we use sometimes for our consulting engagements…
Caution: These tools are NOT for production use! Use with care!
Other tools
FromDual also provides some other tools:
- Database Health Check for MySQL
- FromDual consulting tools for MySQL
- Performance Tuning Key for MySQL
- MyEnv MySQL Environment (Multi Instance operation scripts)
3rd party tools for MySQL
Other 3rd party tools for MySQL you should consider are:
Taxonomy upgrade extras: Tool Consulting Memory San General Query Log
MariaDB and MySQL Benchmarking
Table of Contents
- Database Benchmark
- General Benchmarking Tools
- CPU Benchmarking
- Disk benchmarking
- Network Benchmarking
- Application Stress Testing
Database Benchmark
- sysbench (filesystems and OS/HW tests), Sysbench source, sysbench v0.5, sysbench scripts
- OSDL Database Test Suite (download)
- DBT2 (TPC-C, OLTP), DBT2 Benchmark Tool for MySQL
- DBT3 (TPC-H, complex and long running queries, data warehouse (DWH))
- TM1 (3rd party, ODBC, telecom benchmark)
- TPC Benchmarks …
Taxonomy upgrade extras: Performance Tuning Mysql Benchmark Bechmarking Performance Database Network Data Warehouse
MySQL pluggable Storage Engines (SE)
One of the big advantages of MySQL is its concept of Pluggable Storage Engines. This means you can choose the most optimal Storage Engine for your needs. This also has a disadvantage: You have to know what you are doing…
If you need some help deciding which is the right Storage Engine or even strategy for you or if you want us to make an independent and vendor neutral comparison of those Storage Engines consider our FromDual Consulting Services!
MySQL provides the following storage engines:
mysql> …Taxonomy upgrade extras: Storage Engine Pluggable Solid State Disk Rrd Round-Robin Database Se Architecture Ssd Memory Table Data Warehouse
FromDual - The MySQL consulting company goes operational today!
Hello everybody,
One month earlier than planned we have the great pleasure to announce you that the company called FromDual goes operational today!
We are excited about this step and it is an new era in our personal evolution to get back in full-contact with customers and solve their real life day-to-day MySQL problems.
So we are happy hearing from you and to help you solving your individual MySQL problems…
You can find us at FromDual or you can drop us a line.
Regards,
Oli Sennhauser (aka Shinguz) …
Taxonomy upgrade extras: Fromdual
Presentations
The following presentations are available:
| Date | Title | Location | Lang |
|---|---|---|---|
| November, 2025 | MySQL Honeypot (PDF, 324 kib) | DOAG 2025 Konferenz + Ausstellung, 18 - 20 November 2025, Nürnberg, D | D |
| November, 2024 | MySQL Performance Tuning (PDF, 791 kib), Was ist neu in MySQL 8.4? (PDF, 407 kib) | DOAG 2024 Konferenz + Ausstellung, 19 - 21 November 2024, Nürnberg, D | D |
| August, 2024 | Was ist neu in MariaDB 11.4? (PDF, 271 kib) | FrOSCon 2024, 17 and 18 August 2024, St. Augustin, D | D |
| November, 2023 | Das … |
Taxonomy upgrade extras: High Availability Scale-Out Mysql Architecture Presentation Mariadb Ha Performance Slides
FromDual
Neutral and vendor independent services
for MariaDB, Galera Cluster and MySQL!
Services for MariaDB, Galera and MySQL
We offer the following services:
- Neutral and vendor independent consulting for MariaDB, Galera Cluster, MySQL and Percona Server.
- Enterprise support subscriptions for MariaDB, Galera Cluster and MySQL.
- MariaDB, Galera and MySQL training for database administrators (DBAs) and developers.
- With our remote DBA services we help you to operate your business-critical MariaDB and MySQL databases. …
Taxonomy upgrade extras:
MariaDB, Galera Cluster and MySQL training
FromDual offers trainings for MySQL, MySQL Enterprise, Galera Cluster, MariaDB or Percona Server.
We offer our MySQL, Galera Cluster and MariaDB trainings together with well-respected training organizations: The Linuxhotel in Essen (Germany), the Heinlein Academy in Berlin (Germany) and GFU Cyrus AG in Cologne (Germany).
If you prefer a MySQL, Galera Cluster or MariaDB in-house training at your location and if you provide the infrastructure we are happy to train you on-site either in German or English as …
Taxonomy upgrade extras: Workshop Training Mysql Training Mysql-Workshop Mariadb Training Mariadb Workshop Galera Cluster Training Galera Cluster Workshop Mysql Enterprise
Job offerings
Open job offers
We currently have no job opportunities open. If you are interested to work for FromDual leave us a note and we will inform you about our future job offerings…
Old job offers
MySQL DBA for FromDual Support Line (open until September 30th 2015)!
MySQL DBA for FromDual Support Line (open until January 31st 2014)
MySQL DBA for FromDual Support Line (open until May 31st 2013)
Taxonomy upgrade extras:

