To prevent data loss, you must back up your data in advance.
1. Modify the my.cnf configuration file:
innodb_temp_data_file_path = ibtmp1:12M:autoextend:max:5G
2. Stop the project linked to mysql
3. Restart mysql (be sure to back up the database before restarting to prevent failure to restart, resulting in data loss)
reference:
Solution:
1. Modify the my.cnf configuration file:
innodb_temp_data_file_path = ibtmp1:12M:autoextend:max:5G
2. Set the innodb_fast_shutdown parameter
SET GLOBAL innodb_fast_shutdown = 0; #InnoDB does a slow shutdown, a full purge and a change buffer merge before shutting down
3. Close the mysql service
4. Delete the ibtmp1 file
5. Start the mysql service
——————————————
Copyright statement: This article is the original article of the CSDN blogger "The Road to DBA", following the CC 4.0 BY-SA copyright agreement, please attach Link to the original source and this statement.
Original link: https://blog.csdn.net/qq_35209838/article/details/85058742