plug-in installation directory/var/lib/zabbix/percona/ Templates, copy it out and import it into the Zabbix web.After importing the template name "Percona MySQL Servertemplate", the template is grouped "Percona Templates".650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9F/58/wKioL1mbvCDCGeCsAACKzhCW6gU819.png "title=" Template. png "alt=" Wkiol1mbvcdcgecsaackzhcw6gu819.png "/>Note: The templates in the official installation package are te
BKJIA exclusive Article] Many websites based on the public network do not have a hardware firewall and are directly placed in the IDC data center. All these websites are in the MySQL master-slave architecture. The master and slave databases backup databases and cold backup, although it is not a problem because of downtime, it also affects data backup. There are dozens of such websites. If you perform manual checks one by one, it will take a lot of tim
Use zabbix to automatically detect and monitor MySQL and zabbixmysqlIntroduction
Use the zabbix's low-level automatic discovery function to monitor multiple ports on a single host. For details, see low_level_discovery. The overall monitoring plug-in is similar to the zabbix monitoring plug-in of percona.mymonitor.plReplaced by scriptss_get_mysql_stats.phpAnd the
Tags: ZabbixMonitor MySQL with Percona pluginWe used to monitor MySQL or mariadb status by customizing the monitoring items, but if we need more detailed types of monitoring or do not want to create a series of monitoring projects ourselves, we can use the monitoring items in the Percona plugin to realize MySQL monitor
Zabbix Official Support Monitor MySQL, but using the default template directly is not available and requires additional settings to use. If you only need to do a simple monitoring of MySQL database, Zabbix self-brought template can meet the requirements;Here are the steps to monitor
One, slow query log configuration
Turn on the slow query log to configure the sample:
/etc/mysql/my.cnf[Mysqld]Log-slow-queries
Add the above configuration entry in the MY.CNF configuration file and restart the MySQL service, when the MySQL slow query function takes effect. Slow query log writes to parameter DataDir
Tags: signal ati start dict set hand Ops Moni AIOaccording to MySQL lock monitor This article to operate. Readiness condition: More than 5.6.16 version of MySQL, login MySQL Open Set GLOBAL innodb_status_output=on;
Set GLOBAL innodb_status_output_locks=on;Add and Modify tables.
This article describes how to optimize a particular type of query.1. Optimize the count () queryThe count () aggregate function, and how to optimize queries that use the function, is probably one of the top 10 topics in MySQL that is most likely to be misunderstoodCount () is a special function that has two very different functions. It can count the number of values in a column or count the number of rows.T
Label:MySQL's "slow query" refers to an SQL statement that exceeds the maximum allowable query time ( long_query_time ), and the "unused index" query, by definition, is the SQL statement that the query statement does not use to the index.Slow query configuration and useAdd the following parameters to the Msyqld startup configuration file or command line parameters
Long_query_time=1
Log-slow-queries=/var/
How MySQL uses temporary tables to accelerate queries
This article describes how MySQL uses temporary tables to accelerate queries. Share it with you for your reference. The specific analysis is as follows:
MySQL temporary tables can be used to accelerate
MySQL involves multi-table queries, You need to determine which connection method is more efficient Based on the query conditions.
1. cross join (Cartesian Product) or inner join [INNER | CROSS] JOIN
2. left outer join left [OUTER] JOIN or right outer join right [OUTER] JOIN. Specify the connection conditions WHERE, ON, and USING.
PS: Basic JOIN usage
First, assume there are two tables A and B. Their table
MySQL Slow Log on the company line, has not been well monitored. While I was idle last week, I wrote the monitoring script, and today I specially sent out the code to share with 51 Bo friends. for script annotations and the overall idea, I'll put it behind the script and explain it to you. #!/bin/bash## This script is used to monitor MySQL slow log changes wit
wkiom1e8lu7y-gezaaai1ntzdby447.png2). Apache [[emailprotected] lepus]# yuminstall httpd httpd-manual httpd-devel-y [[emailprotected]]# Rpm-qa |grep http*wkiol1e8lvjihe0raaarigsop_0688.png [[emailprotected] ] ~]# service httpd startwkiom1e8lwlz8pw8aaaoqqhsjx8897.png above: Httpd:could not ReliAbly determine the server's fully qualifieddomain name hint is that Apache will validate the servername configuration when booting, and can add local parsing or modify by modifying the Hosts file httpd.conf
Use ODBC to monitor Oracle Database (11.2.0.3) and MySQL database under Zabbix1. Monitor MySQL Database1) Installing ODBCYum-y Install UnixODBC Unixodbc-develYum Install Mysql-connector-odbc2) odbcinst-j View configuration fileUnixODBC 2.2.14DRIVERS ...:/etc/odbcinst.ini...S
Script Monitoring Database Master-Slave synchronizationSource: http://oldboy.blog.51cto.com/2561410/1632876Source:(production case): monitor MySQL master-slave synchronization is abnormal, if abnormal, send sms or mail to the administrator. Note: If there is no master-slave synchronization environment, you can use the following text in the file to read to simulate:Phase 1: Develop a daemon script to detect
See: http://blog.yemou.net/article/query/info/tytfjhfascvhzxcyt344Multi-performance applications will decompose the associated query. Simply, you can make a single-table query for each table, and then associate the results in your application. For example, the following query:Can be decomposed into the following queries instead:Why on earth do you do this? At first glance, this does not do any good, originally a query, here has become a number of
As Web applications become increasingly complex, simple MySQL + Memcached seems to be unable to meet the needs of data storage. Some enterprises have switched to NoSQL solutions, such as MongoDB, CouchDB, TokyoCabinet/Tyrant, and Cassandra. In their opinion, if the data access mode is not very complex, SQL databases will not be used. However, DeNA chose the "only MySQL" solution and achieved far better perf
Java connects, queries, and modifies the MySQL database0. General process:(1) Call the Class.forName () method to load the driver.(2) Call the Getconnection () method of the DriverManager object to obtain a connection object.(3) Create a statement object and prepare an SQL statement that can be a statement object (the statement executed immediately), A PreparedStatement statement (a precompiled statement) o
developers' intuition. Fortunately, databases like MySQL come with some assistance tools. This article briefly discusses the three tools: Using indexes, analyzing queries using EXPLAIN, and adjusting the internal configuration of MySQL.
I. Using Indexes
MySQL allows you to index database tables so that you can quickly
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.