New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
customising the database engine in installation #8170
Comments
I made some changes but I'm not sure if I understand this issue |
Thanks @tsteur ! https://github.com/piwik/piwik/blob/master/config/global.ini.php#L22 |
I don't understand the problem. It's basically the same with a different name or not?
I don't know how to do this without introducing a new step but then the tables are already created (and we have to run Would it be maybe better to have a command to change the engine of all tables? Such a command should run very quickly after a fresh installation of Piwik |
I've just updated ticket description. Maybe it's more clear now. |
I don't think it's safe to use the default mysql engine. For example what if the default engine is set to an engine that does not support features we need? it is Piwik job to force users to use only engines that will work fine (Innodb or TokuDB). If our goal is to let users install on TokuDB the current solution with new select field, should do the trick? |
That's good point. There are also other compatible engines like XtraDB. Not sure how to proceed. |
Our goal is to let users install Piwik on TokuDB. I would change this issue description to "Let users install Piwik on TokuDB database" and then close it as done? |
Note to self: test what happens when installing selecting TokuDB and TokuDB is actually not available. Does it fail gracefully, show the form, and then let me select Innodb? |
Final decision:
|
New FAQ published: How do I install Piwik using TokuDB table engine in a Mysql or MariaDB database? Updated FAQ: How do I use another database like Postgresql, SQLite, Oracle? Will you support Nosql databases like Hadoop, Mongodb? to link to it (Note: I didn't actually test it, but I tested with Myisam/Innodb which worked so I assume tokuDB will work too. if not, we will fix it next release after feedback from Piwik Enterprise team) |
Please see this line:
https://github.com/piwik/piwik/blob/master/config/global.ini.php#L22
type
in config.php.ini will be set to InnoDB) - it's always better than using MyISAM for most of the users,maybe during installation process it should be possible to choose DB engine, e.g. when there's a combination like MariaDB + TokuDB? But I guess it won't be possible to get the list without connecting to the DB. In addition installation process should be easy and fast.default-storage-engine
setting in DB configuration file (my.cnf) - this means noENGINE = XXXXX
in CREATE TABLE queries. Currently it falls back to type=InnoDB which is set in global.php.iniThe text was updated successfully, but these errors were encountered: