Tuning Ideas:
1. Database design and planning-it's a hassle to fix it later, estimate the amount of data, what storage engine to use
2. Application of data--how to fetch data, optimization of SQL statements
3.mysql Service
MySQL study--mysql off automatic commit (autocommit)For MySQL, in the transaction process, the default is the dynamic commit (AUTOCOMMIT), the following methods can automatically close the autocommit;Case Analysis:1. Modify in MySQL login
1. Several ways to log in to MySQL:#mysql-uroot-p123456 to log in using the socket connection;View Socket file Location Ps-aux | grep mysqld[[Email protected] ~]# PS aux |grep mysqldroot 941 0.0 0.1 6268 1416? S 21:01 0:00/bin/sh/usr/local/mysql/bin/
Mysql slow query log enabling and Storage Format
Mysql version is mysql5.6.22. The installation environment is Windows 7.
1. Use this query log to find the SQL statement with high efficiency, record it, and monitor it.
You can use the following
Mysql slow query log enabling and storage format, mysql Log enabling Storage
Mysql version is mysql5.6.22. The installation environment is Windows 7.
1. Use this query log to find the SQL statement with high efficiency, record it, and monitor
Mysql optimization ideas
Optimization and optimization:
1. database design and planning-it will be difficult to fix it later, estimate the data volume and what storage engine to use
2. data application-how to retrieve data and
Find slow SQL statements in MySQL and mysqlsql statements
How can I find slow SQL statements in mysql? This may be a problem for many people. MySQL uses slow query logs to locate SQL statements with low execution efficiency. When the --
Reference: http://blog.csdn.net/mzlqh/article/details/7621307 Click to open linkin fact, now the UBUNTU12.GenevaDirect sudo apt-GetInstall MySQL on the go, mysql-.The client will automatically load you # to see if MySQL is running sudo netstat-tap
---restore content starts---1. Purpose of the database: Write data and read data2. The life cycle of the query statement:(1) MySQL server listening 3306 port (2) Authenticated access User (3) Create MySQL thread(4) Check memory (Qcache)(5) Parse SQL
can be set with administrator login under the mysql> command line, the settings are temporary. If you want to take effect permanently, modify the relevant parameters in the [mysqld] in the /etc/my.cnf file:#vim/ect/my.cnf[Mysqld]......Here is a
Today, we tested MySQL's highly available architecture--mha, and performed automatic switching, manual failover, and manual online switching, where manual online switching found pits: When the old Master switched to a new slave, the READ_ONLY was
MySQL can use its own profile function to see what system resources are required to execute the statement, such as CPU, memory, disk IO, the default is the shutdown state to be manually opened, profile for the management or development of the DBA is
Technical preparationHosted under the Ubuntu14.04.2 platform, based on the MYSQL5.5.46 version.Log files record the various types of MySQL database activities, as a daily location problem of the most common analysis means, MySQL database commonly
Operating Environment: centos6.6+mysql8.0.121. Download the official packaged binary installation package:#wget HTTPS://CDN.MYSQL.COM//DOWNLOADS/MYSQL-8.0/MYSQL-8.0.12-LINUX-GLIBC2.12-X86_64.TAR.XZYou can see that this version uses the TAR.XZ
Binary logA SQL statement that records committed transactions causing data changes or potentially causing data changes, generating copies of the data through events in the replay log file, independent of the storage engine type.
Binary logs
Database Files
MySQL main file types are as followsParameter file: When the My.cnf--mysql instance starts, where the database file can be found, and specifies some initialization parameters that define settings such as the size of a memory
Querying Mysql status bitsCN.com
Query Mysql status
# Query Database Connection show full processlist; show status like '% Max_used_connections %'; show status like '% Threads_connected %'; # Current connections show status like '% table_lock
Mysql monitoring methods are roughly divided into two categories: 1. connect to the mysql database and use showstatus, showvariables, and flushstatus to view various mysql performance indicators. 2. directly use mysqladmin to view its performance
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.