Consul configuration center of Spring Cloud series

We have learned about Spring Cloud Config before: Consul configuration center of Spring Cloud series (I) Consul configuration center of Spring Cloud series (2) Consul configuration center of Spring Cloud series (3) It provides the function of configuration center, but it needs to cooperate with git, svn or external storage (such as various da ...

Added by synergypoint on Mon, 18 May 2020 09:51:39 +0300

MySQL database functions

1, Date and time functions 1. Function to get the current dateIt's the same. It's different CURDATE() : Used to get the current date of the system CURRENT_DATE() Used by the system to get the current date mysql> select CURDATE(),CURRENT_DATE(); 2. Get function of current time CURTIME() : Used to get the current time of the system mysql& ...

Added by brighton on Thu, 14 May 2020 12:11:49 +0300

Prometheus+Grafana visual monitoring MySQL

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

Issue 04: column CHECK constraint

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

MySQL 8.0 InnoDB supports instant add column

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

Mysql user management related

Currently used user and host: mysql> select USER(); +----------------+ | USER() | +----------------+ | root@localhost | +----------------+ 1 row in set (0.00 sec) Add user 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

My first JDCB program

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

Database learning 7: MySQL client tools and SQL introduction

7, MySQL client tools and SQL introduction 1. Syllabus: 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

[2020Python cultivation] MySQL view, trigger, transaction, stored procedure and function

[contents] (the rest are knowledge) A view Two triggers Three Affairs (mastery) Four stored procedures Five functions Vi. process control 7, Index theory   1, View 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

Mixed query of tp5+Mongodb and Mysql database

Preface 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