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
Around version 0.6, privileged was introduced to ...
Effect The pictures in the code can be changed by...
I have always wondered why the MySQL database tim...
Preface When operating and managing Linux servers...
This article example shares the specific code of ...
Table of contents 1. Relationship between parent ...
Problem Description Several machines recently dis...
Preface I believe most people have used MySQL and...
1. Delete file command: find the corresponding di...
<> Operator Function: Indicates not equal t...
Table of contents question Solution question Ther...
Table of contents Short Introduction 1. Check the...
Table of contents 01 Common Faults 1 02 Common Fa...
1. First create the file (cd to the directory whe...
Data cleaning (ETL) Before running the core busin...