The test environment is set up with a mariadb 5.7, using the jdbc driver <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.34</version> </dependency> Normal in hibernate project. I temporarily built a simple jdbc project and found an error when connecting to the database: Table 'performance_schema.session_variables' doesn't exist I asked Baidu but to no avail, so I had to upgrade the MySQL driver to 5.1.36 and the problem was solved. It is understood that: MySQL 5.5 adds a new storage engine: named PERFORMANCE_SCHEMA, which is mainly used to collect database server performance parameters. MySQL users cannot create tables whose storage engine is PERFORMANCE_SCHEMA. performance_schema provides the following functions: 1. Provide detailed information about process waiting, including locks, mutex variables, and file information; 2. Save historical event summary information to provide detailed judgment on MySQL server performance; 3. It is very easy to add and delete monitoring event points, and the monitoring cycle of the MySQL server can be changed at will, for example (CYCLE, MICROSECOND) With the above information, the DBA can understand in detail the bottlenecks that may be causing the performance degradation. It is very simple to enable the performance_schema function and the performance function of some tables. Add performanc_schema to [mysqld] in my.cnf and check whether the performance database is started: SHOW VARIABLES LIKE 'performance_schema'; If the returned value is ON, it means that the performance database is opened normally. Thank you for reading, I hope it can help you, thank you for your support of this site! You may also be interested in:
|
<<: Vue implements a movable floating button
>>: How to Easily Remove Source Installed Packages in Linux
Table of contents Three steps to operate the data...
1. RPM package installation steps: 1. Find the co...
Preface The <router-link> tag is a great to...
Table of contents 1. Environmental Preparation 2....
Click here to return to the 123WORDPRESS.COM HTML ...
The nginx logs are collected by filebeat and pass...
A brief introduction to protobuf Protobuf is Goog...
In order to centrally manage the images we create...
Table property settings that work well: Copy code ...
Case 1 vue-cli builds the vue3 project, uploads t...
The first method: dynamically add a class to show...
Over a period of time, I found that many people d...
In daily development, database addition, deletion...
1. Check the currently installed PHP packages yum...
Table of contents 1. Basic Use 2. Working Princip...