0

现在我的 MySQL (5.6) 使用 Antelope 作为文件格式。对于另一个系统,我需要将数据库设置为梭子鱼文件格式。

有没有办法在同一个共享托管服务器上将一个数据库设置为 Antelope,另一个数据库设置为梭子鱼?

关于 innodb_large_prefix 的相同问题 - 我可以将其仅设置为共享托管服务器中的一个数据库,而不将其更改为此共享托管服务器上的所有数据库吗?

谢谢!内存

4

1 回答 1

0

You cannot have two instances of MySQL talking to the same set of files. Not even if everything is identical.

You can have two instances of MySQL, each with its own, separate, copy of the data.

You can have two instances of MySQL, one "replicating" from the other, with the same data, but separate disk files for this copies of the data.

When a single instance of MySQL is running with Barracuda, it can (in theory) have some tables that are using Antelope. The VARIABLE in my.cnf controls the "max". That is, when set to B, it can handle A or B. When set to A, it cannot handle B. (Note: they eventually eliminated both.)

Which do you really want?

innodb_large_prefix is related. (Note, also, that it has been removed in a later release.) Perhaps this is really what you need -- 5 ways to deal with a certain error: http://mysql.rjweb.org/doc.php/limits#767_limit_in_innodb_indexes

于 2020-06-01T20:22:26.720 回答