mysql change innodb_large_prefix

后端 未结 5 1780
遇见更好的自我
遇见更好的自我 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条回答
  • 2020-12-09 06:35

    For a permanent solution, pls add following in your mariadb My.INI file-

    ## Innodb settings to bypass error of max size 737
    innodb-file-format=barracuda
    innodb-file-per-table=ON
    innodb-large-prefix=ON
    ## Above 3 didnot work so i added below
    innodb_default_row_format = 'DYNAMIC'
    

    I was using 10.1.38

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-09 06:40

    I'm using Mysql 5.6.17 with WAMP Server I solved the problem by editing the my.ini file Find the category [mysqld] there add the following instructions

    [mysqld]
    innodb_file_format = Barracuda
    innodb_large_prefix = 1
    innodb_file_per_table = ON
    

    Don't forget to save the changes and restart all services.

    0 讨论(0)
  • 2020-12-09 06:44

    Go to your xampp and add this query:

    `mysql>` set global innodb_file_format = `BARRACUDA`;
    `mysql>` set global innodb_large_prefix = `ON`;
    
    0 讨论(0)
  • 2020-12-09 06:48
    mysql> set global innodb_file_format = `BARRACUDA`;
    mysql> set global innodb_large_prefix = `ON`;
    
    0 讨论(0)
提交回复
热议问题