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
installation issue on empty database: Unknown table engine 'InnoDB' #8824
Comments
P.S.: piwik-2.15.0-b8 is the first I tried after piwik-2.14.3, so I don't know which beta this issue occurred with first. |
More details (including ERROR backtrace below): Same error can be observed after installation on following test procedure:
Actual results:
|
@Joey3000 if you get an error or warning when |
Usually this error message should mean that the innodb table type is not setup in your mysql. could you double check http://stackoverflow.com/questions/7303133/unknown-table-engine-innodb |
It's I could switch the PHP configuration to MySQLi instead of PDO/MySQL though - would that help? |
No there shouldn't be a change that affects this... I don't understand it so far. Does anyone else experience the issue? |
When you mean you install via ftp you mean you install the downloaded version from the piwik.org website right? You already mentioned the config, can you change it to anything else but InnoDB? Does it change anything? See eg http://piwik.org/faq/how-to-install/faq_20200/ Another idea: Maybe it's not due to an update in code but due to some dead locks that suddenly appear. Eg we lock additional infos when there is a deadlock and |
I've checked the betas and the issue first occurs in piwik-2.15.0-b3. (piwik-2.15.0-b0, piwik-2.15.0-b2 install without a problem; piwik-2.15.0-b3, piwik-2.15.0-b4, piwik-2.15.0-b8, piwik-2.15.0-b13 fail.)
Right. I use the .zip files from https://builds.piwik.org/.
Changing https://github.com/piwik/piwik/blob/2.15.0-b13/config/global.ini.php#L22 from Whereas removing that line results in:
Nope, no luck with that line commented out - the error still there: Is there anything else I could check? |
Just in case it helps, here are the backtraces on piwik-2.15.0-b13:
|
Which MySQL engine are you using? Can you configure the one you're using here in
Maybe it should be |
@tsteur: SHOW ENGINES outputs following:
Changing https://github.com/piwik/piwik/blob/2.15.0-b13/config/global.ini.php#L22 from Questions, just to understand the current behaviour:
I'm on the outdated MySQL 5.1.73, but https://piwik.org/docs/requirements/ states that Piwik requires For MySQL 5.5 - 5.7, the default apparently changed from MyISAM to InnoDB, but https://dev.mysql.com/doc/refman/5.7/en/show-engines.html still states for version 5.7:
Or maybe the engine could be configurable on installation (as a text input box)? With Notes:
|
|
True, that would be better than juggling with menus and unneeded choices. |
yes,
@Joey3000 can you try if removing |
Yes, that fixes the issue. Nice find indeed, and nice team work. :) |
@mattab should we maybe remove |
For sure we should remove it. Don't know why I closed it without removing the code! |
I get the following error on installation of piwik-2.15.0-b8 (from builds.piwik.org) after the database configuration page, if the database is empty before installation:
SQLSTATE[42000]: Syntax error or access violation: 1286 Unknown table engine 'InnoDB'
If, on the other hand, the installation is done with a database previously used by piwik-2.14.3, it succeeds without problems. piwik-2.14.3 installs without problems with an empty DB.
That is all on a remote server with PHP 5.5.22, MySQL 5.1.73 with PDO\MYSQL.
Notes:
Whereby in the above /core/testMinimumPhpVersion.php, the ini_set presence check block gets commented out entirely.
The reason for the patch is that "ini_set" is disabled for security reasons - it's a shared host. But that doesn't seem to have any impact here.
The text was updated successfully, but these errors were encountered: