Let's learn about the MySQL explain implementation plan. Day 4 of MySQL Optimization Learning

Optimization of a query You should encounter this scenario. A self incrementing primary key is set in MySQL, but some data is subsequently deleted, resulting in discontinuous primary keys. You can use the following command to query those discontinuous primary keys. -- Writing method 1 select id from (select id from Table name order by id asc ...

Added by visitor on Sat, 15 Jan 2022 04:06:21 +0200

Kept + MySQL primary replication for high availability

Dual machine hot standby scheme Kept + MySQL master-slave replication to realize active and standby 1.1 deployment mode The two servers deploy the same running environment and services. The running environment includes java running environment, redis, mysql, kept and java background services 1.2 realization effect When the background process of ...

Added by zc1 on Fri, 14 Jan 2022 17:01:58 +0200

MySQL DQL statement

MySQL DQL statement DQL is the data query language of MySQL Query all columns SELECT * FROM Table name; Query specified column SELECT Column 1 [, Column 2, ... column N] FROM Table name; Completely duplicate records only once As like as two peas of the query result, the one row is displayed. Generally, this is rarely the case when querying ...

Added by yashvant on Fri, 14 Jan 2022 16:37:24 +0200

flyway quick start - combined with springboot

1, Flyway introduction demo address Flyway Is an open source database version management tool. It can be easily used on the command line or introduced in Java applications to manage our database version. In a project or product, it is difficult to clarify the business and design the database table at the beginning, so the data table will con ...

Added by methano on Fri, 14 Jan 2022 09:49:17 +0200

Introduction to mysql engine, log summary, master-slave principle, xtrabackup for full plus incremental plus binlog database recovery

mysql service 1 1. Summarize the common storage engines and characteristics of mysql. show engines; View database engines supported by the database MyISAM engine features: Transaction not supportedRead and write are mutually exclusive and cannot be read or written at the same timeForeign keys are not supportedRead and write data faster an ...

Added by RightNow21 on Fri, 14 Jan 2022 04:11:54 +0200

MySql table operation instructions and cases

Note: this blog is MySql table operation instruction 1. If you want to learn the basic MySql instructions, you can use the author Blog Learning; If you want to practice further, you can do it after learning Operation 2 After that, according to Blog MySql instance Practice! Add, delete, query and modify ~ simple instructions Create table ...

Added by fuji on Fri, 14 Jan 2022 02:10:44 +0200

MySQL super detailed query syntax advanced version

This article is mainly aimed at the addition, deletion, modification and query of MySQL and upgrading again. If you want to see the basic additions, deletions and changes, you can see the previous article of the blogger. Here, the blogger posts a link for you: https://blog.csdn.net/weixin_53033446/article/details/119005596?spm=1001.2014.3001.55 ...

Added by JD-AM on Thu, 13 Jan 2022 23:15:14 +0200

Centos7 completely uninstalls MySQL & installs & starts

Centos7 completely uninstalls MySQL & installs & starts Uninstall section 1. See what mysql has installed rpm -qa |grep -i mysql 2. Start the uninstallation, and execute the installed XXX in sequence: yum remove XXX 3. Check to see if the uninstall is complete rpm -qa |grep -i mysql 4. Find mysql related directory find / -na ...

Added by mitjakac on Thu, 13 Jan 2022 18:59:55 +0200

Interpretation of new features | MySQL 8.0: explain analyze analyze SQL execution process

Author: Hu ChengqingMember of aikesheng DBA team, good at fault analysis and performance optimization, personal blog: https://www.jianshu.com/u/a95... , welcome to the discussion.Source: original contribution*It is produced by aikesheng open source community. The original content cannot be used without authorization. For reprint, please contact ...

Added by herod1 on Thu, 13 Jan 2022 10:47:44 +0200

Fault analysis | MySQL setting terminology_ use_ The previous parameter causes the database to Crash

Author: Yu ZhenxingAikesheng is a member of DBA team and is keen on technology sharing and writing technical documents.Source: original contribution*It is produced by aikesheng open source community. The original content cannot be used without authorization. For reprint, please contact Xiaobian and indicate the source.background information Due ...

Added by muralimohan001 on Thu, 13 Jan 2022 05:25:35 +0200