运行创建索引的Rails迁移时,我得到:
Mysql::Error: Specified key was too long; max key length is 1000 bytes: CREATE UNIQUE INDEX `index_matches_on_foo_and_bar_id_and_baz_id` ON `matches` (`foo`, `bar_id`, `baz_id`)
Run Code Online (Sandbox Code Playgroud)
我需要设置什么MySQL变量来增加它,我在哪里设置它以便它影响所有会话,而不仅仅是当前的客户端会话?
mysql ×1