Tuning the mysql server in linux - mysql

I have a mysql server in linux platform. I need to do performance tuning in that mysql server which is innodb engine.I want know the manual configuration in my.cnf file. so, what are all the important innodb parameters to be configure ? Because innodb and myisam engines are having different tuning operations. please tell some useful things to do

I would recommend using MySQL Tuner
This is good starting point for MySQL performance tuning.
You should also be running some kind of monitoring software that is able to graph
you MySQL health. This is vastly helpful when the performance trouble comes in.
I would recommend you munin with the MySQL plugins.
Regards -- Luke

Related

What does MySQL's performance_schema do and what are the ramifications of disabling it?

I'm trying to optimise the Digital Ocean droplet that my Laravel web app is running on, and have noticed that MySQL is constantly using ~50% of its 1GB RAM. By far the most common and well-attested method for decreasing MySQL's memory footprint is to disable its Performance Schema feature by setting performance_schema = 0 in /etc/mysql/my.cnf.
However, no answer I've seen yet makes any mention of what exactly this feature does, why it's enabled by default, and the implications of disabling it. To me it seems too be good to be true, and while I'm all for optimisation, I also don't want to compromise the integrity of my web app's server.
The performance_schema is for monitoring and instrumenting the MySQL Server. Many types of monitoring tools may depend on it. I won't describe the specific events it monitors, because that's in the manual.
You can run MySQL Server without the performance_schema enabled, but monitoring will be compromised. If you disable monitoring, you will not be able to diagnose performance problems or resource usage.
The IT industry is becoming increasingly aware that monitoring is an important feature of servers and infrastructure. I don't think it's a good tradeoff to disable the performance_schema in MySQL Server to gain a mere 512MB of memory. If you are that constrained on memory, then you should reconsider if MySQL Server is the right technology choice for your platform.

MySQL I/O Performance in XAMPP

Is there a way to monitor MySQL I/O performance in XAMPP?
I am building an application that will interface with the MySQL database and for testing in XAMPP MySQL, I would like to be able to monitor I/O performance.
XAMPP does not have a performance monitoring tool built in for Mysql, since it is a web server and just comes packaged with Mysql when installed. There are a number of free and paid ways to monitor I/O performance for Mysql.
If you are on a linux server you can use iostat, htop, innotop, show innodb engine status and a number of other packages to monitor I/O performance yourself. Here is a Useful link.
Mysql Workbench is free and has a Dashboard where you can see performance.
Monyog is another great tool but is not free and requires some setup. However, the performance monitoring for a DBA is worth the effort, especially if you have dozens of sites.

MySQL Raw Data Backup and Restoration

I am planning to migrate a large MySQL database from a Windows Machine to a Linux machine. The databases uses the InnoDB storage engine on the tables. Because mysqldump is so slow with large databases, i want to use raw data (files) to perform the task. I understand that when doing it this way, the hardware on both machines and the MySQL versions have to be identical, otherwise its complex to accomplish. Now my question is - Is there perhaps a tool that i can use to help accomplish this...maybe a tool that requires to pay or even free it does not matter? Please advise.

MySql in cluster environment

Does MySql support for cluster environment? Whether Community edition support for clustering?
I want to know more details about it. Please guide me where can I get details?
You can read everything about MySQL Cluster (which is a different version than MySQL Community, but you can get both for free) on the MySQL website:
http://www.mysql.com/products/database/cluster/
MySQL Community edition can be set up to do master-slaves replication, but that's not as cool and effective as what MySQl Cluster can do.
Yes, MySQL Cluster does support clustering. If you have a Amazon EC2 account, I recommend this tool/website for setting up a MySQL Cluster quickly for testing: http://support.severalnines.com/entries/20916823-installing-on-amazon-ec2
MySQL Cluster is apparently the only MySQL solution right now from Oracle (outside of Percona and others) that allows for 99.999% availability (HA).
From my initial tests, MySQL Cluster is really fast at writes, but slightly slower at reads, though it aggressively caches reads after the first read. I'm still studying it myself.
Also, MySQL Cluster community edition should suffice for most use cases. I think the Carrier Grade edition is only for real heavy-duty uses.
You can get straight to the community (GPL) download for MySQL Cluster at http://dev.mysql.com/downloads/cluster/ (or the commercial version from Oracle e-Delivery - the functionality and underlying code base is the same).
An alternative to MySQL Cluster is SchoonerSQL, a cluster based on MySQL but uses the standard InnoDB storage engine rather than NDB. It supports 99.999% availability and has a very simple GUI management console. Go to SchoonerInfoTechcom

Recommendable Hot Backup System for MySQL?

I am looking for a hot backup system for mysql databases? I like to ask you for experiences and expertise.
So the place you want to look for good solutions to MySQL issues is Mysql Performance Blog/Percona. Specifically, what you want to do is use their XtraBackup, which fixes a number of issues that occur with InnoDBs hot backup. You'd be well served to use their patched server with their InnoDB replacement XtraDB.
They integrate a number of third party patches for MySQL, including their own and Google's, and have enhanced the InnoDB storage engine with fixes, enhancements and better logging. Additionally, Percona sponsors a fantastic toolbox for MySQL called Maatkit, which gives some components to help you with backups and integrity checks.
I know InnoDB hot backup but works just for InnoDB
http://www.innodb.com/products/hot-backup/
I use the MySQL GUI Administrator Tool. It has a backup tool, which you can use to schedule daily backups through windows. You can create different backup projects, schedule the backups, and control how the backup runs and the type of output file it creates.
I've always found it reliable, and the other tools bundled with it are also useful for basic database administration.