Opened 6 years ago
Last modified 4 years ago
#13080 new enhancement
Add [trac] mysql_storage_engine option instead of editting my.cnf
Reported by: | Jun Omae | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-dev-1.7.x |
Component: | database backend | Version: | |
Severity: | major | Keywords: | mysql |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Cloned from ticket:10993#comment:8:
This issue might be revisited in the future, for now I'm just summarizing the discussion in gdiscussion:trac-users:MO_KSSQMdnU.
The requirement to set
default_storage_engine
anddefault_tmp_storage_engine
inmy.cnf
could be removed if:
- The storage engine was specified in a trac.ini variable such as
[trac]
mysql_storage_engine
or[mysql]
storage_engine
MySQLConnector.to_sql
was modified to include theENGINE
table option inTABLE CREATE
statements- The modules in the
upgrade
package were modified to use theENGINE
table option either directly or indirectly by use of a helper function (such asMySQLConnector.to_sql
)
We could set the default_storage_engine
and default_tmp_storage_engine
variables in session on connecting database, to remove the requirement.
SET @@session.default_storage_engine = 'InnoDB';
PoC: [f877c7e1d/jomae.git] (jomae.git@t10993_storage_option).
If [trac] mysql_storage_engine
option is empty (default), the session variables is not set and global variables is referred.
Milestone renamed