High overhead in new mysql table

Does anyone know why I am getting 131.0 MiB overhead on a newly created table (zero rows)? im using phpmy admin and my script code is

CREATE  TABLE IF NOT EXISTS `mydb`.`mytable` (
  `idRol` INT NOT NULL AUTO_INCREMENT ,
  `Rol` VARCHAR(45) NOT NULL ,
  PRIMARY KEY (`idRol`) )
ENGINE = InnoDB;

early.

+3
source share
2 answers

InnoDB uses a common table space. This means that by default, all tables, regardless of the database, are stored in a single file in the file system. This is different from, for example, MyISAM, which stores each table as a single file.

InnoDB's behavior is subject to change, although I do not think this is really necessary in this case. See Using table table tables .

- , , , , InnoDB . .

+4

, mysql 'idRol'

, , . . .

0

Source: https://habr.com/ru/post/1705197/


All Articles