Innodb system table space maintenance method

Innodb system table space maintenance method

Environmental Description:

There is a running MySQL environment. Because the previous configuration file settings were too simple (no innodb_data_file_path changes were configured), the system table space is now full.

If innodb_data_file_path has not been set before, it will use the default value: innodb_data_file_path=ibdata1:12M; the problem lies here that it is not set

autoextend

Solution:

1. Shut down the already running MySQL

mysqladmin -h127.0.0.1 -uroot -pxxxx shutdown

2. Add a second system tablespace file for mysql, set its size and add the autoextend attribute

[mysqld]
innodb_data_file_path = ibdata1:12M;ibdata2:12M:autoextend

3. Restart mysql

service mysqld start

By the way, if you want to reduce the system table space, you can do it. Generally speaking, you have to start with one;

The general steps are as follows

1. Back up your database with mysqldump

2. Close your mysql database and delete the files under datadir

3. Edit the configuration file to your desired configuration and re-initialize a new MySQL database

4. Restore the database from the dump file in the first step

The above innodb system tablespace maintenance method is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

You may also be interested in:
  • How to use mysql Innodb tablespace unloading, migration, and loading
  • A brief analysis of MySQL shared tablespace and exclusive tablespace and their conversion
  • MySQL Optimization: InnoDB Optimization

<<:  Use Javascript to implement the function of sending SMS verification code interval

>>:  General Guide to Linux/CentOS Server Security Configuration

Recommend

Idea deploys remote Docker and configures the file

1. Modify the Linux server docker configuration f...

SQL left join and right join principle and example analysis

There are two tables, and the records in table A ...

About the overlap of margin value and vertical margin in CSS

Margin of parallel boxes (overlap of double margi...

Basic reference types of JavaScript advanced programming

Table of contents 1. Date 2. RegExp 3. Original p...

Solution to Incorrect string value in MySQL

Many friends will report the following error when...

Why the explain command may modify MySQL data

If someone asked you whether running EXPLAIN on a...

Configuring MySQL and Squel Pro on Mac

In response to the popularity of nodejs, we have ...

How to deploy Node.js with Docker

Preface Node will be used as the middle layer in ...

Linux /etc/network/interfaces configuration interface method

The /etc/network/interfaces file in Linux is used...

Setting up shared folders in Ubuntu virtual machine of VMWare14.0.0

This is my first blog post. Due to time constrain...

Analysis of mysql view functions and usage examples

This article uses examples to illustrate the func...

MySQL database must know sql statements (enhanced version)

This is an enhanced version. The questions and SQ...

MySQL Query Cache Graphical Explanation

Table of contents 1. Principle Overview Query Cac...