This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10191|Reply: 1

The SQL statement in PMM MySQL Query Analysis Examples is incomplete

[Copy link]
Posted on 11/22/2021 3:06:02 PM | | | |
Percona Monitoring and Management (PMM) is a free and open-source monitoring tool for MySQL, PostgreSQL, MongoDB, and ProxySQL, and the servers they run on.

PMM helps you improve the performance of your database, simplify its management, and enhance its security. It's efficient, quick to set up, and easy to use.

I monitorMySQL version is: 5.7.24, using the Performance Schema pattern, which reads and analyzes data from the PERFORMANCE_SCHEMA library.



MySQL 5.5 begins with a new database: PERFORMANCE_SCHEMA, which is mainly used to collect database server performance parameters. Moreover, the storage engine of the library table is PERFORMANCE_SCHEMA, and users cannot create tables with a storage engine PERFORMANCE_SCHEMA. MySQL5.5 is off by default, and from MySQL 5.6 onwards, it is on by default.
By clicking on the "Query Analytics" interface and clicking on a relatively long SQL statement, it is found that the display is incomplete, as shown in the figure below:



The reason for the incomplete display is that MySQL has a default limit when storing text.Excess will be truncated, the default configuration is as follows:



solution

Needs to be modified on the MySQL server/etc/my.cnfThe configuration is as follows:

After the setup is completed, as shown below:



The above parameters must be configured on the server, and cannot be set by the set global command, otherwise the error will be as follows:

SQL Error [1238] [HY000]: Variable 'max_digest_length' is a read only variable
The PMM's Examples interface can already display the completed SQL statements.

(End)





Previous:Linux kernel:NMI watchdog: BUG: soft lockup - CPU
Next:MongoDB common query commands
 Landlord| Posted on 11/23/2021 5:02:25 PM |
Linux View the MySQL configuration file path and related configurations
https://www.itsvse.com/thread-7402-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com