Use Prometheus and Grafana to monitor MySQL server performance.Use two exporter s:Node? Exporter: server system data collectionmysqld_exporter: MySQL server data collectionMonitoring architecture:
Prometheus installation configurationInstallation mode binary installation, see here for details CentOS7 deployment PrometheusVersion: current late ...
Added by dhruvasagar on Thu, 14 May 2020 02:15:46 +0300
check constraint means to filter one or more columns according to certain preset rules. If the condition is true, the filtering succeeds; if the condition is false, the filtering fails and the failure code is returned to the client.
Why do you want to list and write this separately? You often encounter irregular SQL. In many cases, you can onl ...
Added by AndyB on Wed, 13 May 2020 12:25:22 +0300
Original address: https://mysqlserverteam.com/mysql-8-0-innodb-now-supports-instant-add-column/
For a long time, instant DDL has been one of the most popular InnoDB functions. For the growing and fast-growing data set, any network scale database must have the function of executing DDL immediately.
Developers often need to add new columns to m ...
Added by coolfool on Tue, 12 May 2020 16:55:02 +0300
Currently used user and host:
mysql> select USER();
| USER() |
| root@localhost |
1 row in set (0.00 sec)
Before mysql 5, you can directly use INSERT to INSERT mysql users into mysql tables. You can't do this after mysql 5
mysql> insert into mysql.user(Ho ...
Added by snap2000 on Mon, 11 May 2020 19:06:52 +0300
1, Create your own database
Download and install MySQL
1.windows Download: http://dev.mysql.com/downloads/mysql/
2. Open the server: enter the bin directory of the download path in the terminal (cmd), and execute mysqld -- initialize executor to start the server and initialize, but an error will be reported. The reason is that there is no data ...
Added by _giles_ on Mon, 11 May 2020 07:51:35 +0300
7, MySQL client tools and SQL introduction
mysql client command introduction;
How to get help from mysql;
Management database of DDL statements;
DDL statement management table and case introduction;
Data in management table of DML statement;
SELECT to retrieve data;
2. mysql interface program and SQL introduction
mysql client comma ...
Added by jdimino on Fri, 08 May 2020 16:47:04 +0300
[contents] (the rest are knowledge)
Three Affairs (mastery)
Four stored procedures
Vi. process control
7, Index theory
1. What is a view
A view is a virtual table (non real existence). Its essence is to get a dynamic data set according to SQL statements and name it. When users use it, they only ne ...
Added by csplrj on Fri, 08 May 2020 11:46:25 +0300
MongoDB mass data query is fast without data model
Suitable for log database
Or the intermediate database reads and stores some business data to be read from the MySQL database
MongoDB is not suitable for multi table transaction function, and there is not a good determination mechanism for write operation. It is not suitabl ...
Added by steved on Tue, 05 May 2020 01:46:33 +0300
Elastsearch basic query
Elasticsearch is a very powerful full-text search engine. The purpose of using elasticsearch is to quickly query the desired data.
Basic query: query with elastic search built-in query criteria
Composite query: a composite query that combines multiple basic queries
Filter: when querying, filter out the desired data ...
Added by natronp on Mon, 04 May 2020 06:30:21 +0300
In the previous section, we talked about the configuration of haproxy's access control ACL. For a review, please refer to https://www.cnblogs.com/qiuhom-1874/p/12817773.html ; Today let's talk about the configuration of haproxy's https, tcp-based four-tier load balancing, and access control.
First let's look at the configuration of haproxy's ht ...
Added by amandas on Sun, 03 May 2020 09:12:33 +0300