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

The most complete package.json analysis

Table of contents 1. Overview 2. Name field 3. Ve...

MySQL 8.0.15 compressed version installation graphic tutorial

This article shares the installation method of My...

Two-hour introductory Docker tutorial

Table of contents 1.0 Introduction 2.0 Docker Ins...

Design Tips: We think you will like it

<br />Looking at this title, you may find it...

How to set default value for datetime type in MySQL

I encountered a problem when modifying the defaul...

MySQL partition table is classified by month

Table of contents Create a table View the databas...

Detailed explanation of MySQL date string timestamp conversion

The conversion between time, string and timestamp...

Example of using swiper plugin to implement carousel in Vue

Table of contents vue - Use swiper plugin to impl...

Vue development tree structure components (component recursion)

This article example shares the specific code of ...

How to explain TypeScript generics in a simple way

Table of contents Overview What are Generics Buil...

Vue implements chat interface

This article example shares the specific code of ...

CSS3 radar scan map sample code

Use CSS3 to achieve cool radar scanning pictures:...

Detailed explanation of identifying files with the same content on Linux

Preface Sometimes file copies amount to a huge wa...