15 useful MySQL/MariaDB performance tuning and Optimization Techniques
MySQL is a powerful open-source Relational Database Management System (RDBMS ). It was released in 1995 (20 years ago ). It uses Structured Query Language (SQL), which may be the most popular choice in database content management. The latest MySQL version is 5.6.25, which was released on July 25, May 29, 2015.
An interesting fact about M
add the following line to the boot auto mount in the/etc/fstab file:
/dev/sdb1/ssd ext3 defaults00
Now we move MySQL to the new diskFirst stop the MySQL service:
#service mysqld stop
I suggest you?? Stop Apache/nginx at the same time to prevent any attempts to write to the database:
#service httpd stop
#service nginx stop
Now copy the entire MySQL directory into the new partition:
#cp/var/lib/mysql/ssd/-Rp
This may take some time, depe
xf master# cd major-mysqltuner-perl-993bc18/#./ mysqltuner.pl You will receive detailed reports and recommended tips for MySQL usage. The following is an example of the output from the default MariaDB installation: MySQL Performance Optimization 15. Optimize and Repair MySQL database Sometimes tables in the MYSQL/MARIADB database can easily crash, especially if the server shuts down unexpectedly, the fil
2014-08-23 BaoxinjianI. Summary
A script that is circulated online to query the efficiency of a single SQL query and export it as an HTML report, similar in function to Dbms_profilerQuery sql_id by session, only run script, export as HTML reportThe SQL script: Http://files.cnblogs.com/eastsea/sqlcheck.zipIi. cases-Using the
' Export path= $PATH:/usr/local/mysql/bin ' >>/etc/profileSource/etc/profile/etc/init.d/mysql startPs-ef | grep MySQLecho "Remember to log in to the database to change the database password and refresh the permissions. "echo "If you can't log in to the database directly with MySQL, please source/etc/profile it manually"echo "=================mariadb installed successfully!===congratulation==="This article is from the "high-tech Library" blog, please
/mysql/data-dsysconfdir=/etc-dwithout_tokudb= 1-dwith_innobase_storage_engine=1-dwith_archive_stprage_engine=1-dwith_blackhole_storage_engine=1-dwiyh_ Readline=1-dwiyh_ssl=system-dvith_zlib=system-dwith_lobwrap=0-dmysql_unix_addr=/var/lib/mysql/mysql.sock- Ddefault_charset=utf8-ddefault_collation=utf8_general_ciFiSleep 3echo $?Sleep 3#-j 2 represents a two-thread CPU to make, which is faster. LSCPU can see how much the CPU (s) is.#make-j $ (grep processor/proc/cpuinfo | wc–l)The #-j parameter in
Generally, it is not recommended to upgrade the database version. This script is dedicated to version control. To prevent compatibility issues between major versions, scripts by default only support upgrades between the same major version, such as MySQL-5.6.25 upgrade to MySQL-5.6.26, MySQL-5.5.44 upgrade to MySQL-5.5.45, MariaDB-10.0.20 upgrade to MariaDB-10.0.2
Tags: mariadb compiling and installing shell Automation Ansible Project PracticeIn the previous blog has been demonstrated, through scripting MySQL Universal binary installation, the following through the demonstration script to implement the source code compilation MARIADB Automation, in large-scale deployment of multiple ma
MySQL performance tuning primer script is a simple and easy-to-use mysql optimization tool. In fact, it is a shell script.
Download:
$ Wget http://www.day32.com/MySQL/tuning-primer.sh
Run
$ Sh tuning-primer.sh all
After running the command, you will be asked about the m
We are in the design, often fine-tuning the color of the light and shade, or to some online color tool site to adjust the brightness accurately, but this is more troublesome, where the design of the talent network to find a very useful photoshop brightness adjustment script, The use of the time only to press the Photoshop shortcut keys can adjust the color of the bright and dark, saving a lot of design time
Oracle SQL Tuning Health Check ScriptWe focus on the performance of database system, the main task of database tuning is to optimize SQL. Good data architecture design, with application system middleware and writing a beautiful SQL, is the future of the system on-line no fatal performance problems of the strong guarantee.In the CBO era, a SQL execution plan was diverse. The factors that affect the execution
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.