mysql中出现Specified key was too long; max key length is 767 bytes,需要innodb_large_prefix设置步骤

mysql> set global innodb_file_format = BARRACUDA;
Query OK, 0 rows affected (0.00 sec)
 
mysql> set global innodb_large_prefix = ON;
Query OK, 0 rows affected (0.00 sec)

你可能感兴趣的:(mysql,mariadb,数据库)