Description: As we know, we can’t create a function-based index on MySQL, not like PostgreSQL (https://www.postgresql.org/docs/current/indexes-expressional.html). Usually, we should avoid using functions in the where …
Read More »Shuo Wang
Pay attention when using MySQL User-Defined Variables
Recently, i used a user-defined variable to store some values, and it showed an unexpected result. I updated rows using ‘where a in (@var)’, but this query …
Read More »How to get the network packets between MySQL client and server?
Sometimes when we get ERROR messages such as the communication failure, MySQL server not responds your requests, or we want to know what the …
Read More »Tips when using ‘replace into’ and ‘insert … on duplicate key update…’ in MySQL
Sometimes when we want to insert rows into a table which contains duplicate keys, then we consider using ‘replace into’ or ‘insert into … …
Read More »Benchmark performance of MySQL using SysBench
Before installing MySQL instance, we must evaluate the CPU, Memory, Disk IO performance, Disk size, network of the server, also the maximal QPS(Query Per Second), concurrent …
Read More »Archive data using pt-archiver
The Percona Toolkit contains many tools for MySQL. Usually, we use the pt-archive to archive our data. Pt-archive can archive the table data to …
Read More »How to build a MySQL on Linux quickly?
This article introduces how to build a MySQL on Linux quickly. This’s often used to build a temporary MySQL for testing. In short, we only need …
Read More »MySQL-How to drop a large table gracefully?
Description: Drop tables is such a common content of a DBA’s daily work. Drop a small table( such as less than 100 Mega Bytes ), we …
Read More »MySQL — The DATETIME column rounding causes data inconsistency
Description: Recently, when i checked my data on two MySQL servers( version: 5.7.17 ), i found data differences between to servers, which surprised me. Because …
Read More »