Mysql 8.0 "ERROR 1030 (HY000): Got error 100" when adding index to very large table

All we need is an easy explanation of the problem, so here it is.

I’m attempting to add an index to a very large table (2B rows) and the command fails after a few hours with:

ERROR 1030 (HY000): Got error 100 – ‘InnoDB error’ from storage engine

I’m finding the InnoDB 100 error code to be ungoogleable. It seems to be running out of some kind of resource, but the server has 128 GB of RAM and tons of disk space. Mysql isn’t crashing.

I think maybe I need some config tweaks to give it more juice, but I don’t know where to start.

Server version: Server version: 8.0.28
Db engine: InnoDB

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

Perhaps the setting for tmpdir is pointing into a small disk partition. Check

SHOW VARIABLES LIKE 'tmpdir';

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply