mysql change innodb_large_prefix

后端 未结 5 1793
遇见更好的自我
遇见更好的自我 2020-12-09 05:56

I just setup debian 8.3 on a VM and installed xampp after this Tutorial. Everything is working, until I tried to create a new table:

create table testtable
(         


        
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 06:37

    Between 5.6.3 and 5.7.7 (that is if you are running MySQL 5.6 or MariaDB 10.0), there are 4 steps:

    • SET GLOBAL innodb_file_format=Barracuda;
    • SET GLOBAL innodb_file_per_table=ON;
    • ROW_FORMAT=DYNAMIC; -- or COMPRESSED (goes on end of CREATE)
    • innodb_large_prefix=1

    Note

    SELECT * FROM information_schema.INNODB_SYS_TABLESPACES;
    

    will provide the file_format and row_format. Some other I_S tables provide clues of file_per_table.

提交回复
热议问题