-
Notifications
You must be signed in to change notification settings - Fork 88
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
Impossible installation with mysql cause of "Unknown system variable 'storage_engine'" #818
Comments
Thanks for reporting! Since we also support older sql versions, we'll need to add a switch here. We don't have specific mysql version checking, so maybe the easier way is to let the query fail, catch the failure, and then issue the other engine command. We should use the mysql8 syntax as default and only fall back to the "old" variant. Thoughts? @onli ? |
I thought we already had the storage_engine bug fixed in the beta. Have a look at Serendipity/include/db/mysqli.inc.php Lines 295 to 305 in 2ef0afd
The idea there was to solve the MySQL bug by not setting the I'd probably would have added a second version check:
But that's a version check after a version check and a lot of ifs. Probably not a good idea. To use the |
I just checked upon this code, since we just released 2.5.0, but I think this bug here was missed. Someone available to run the code as shown in #818 (comment) on mariadb? |
I wanted to try it out, but a new installation failed somewhere else: [#822] The automatic update from 2.5beta to 2.5 doesn't work, but with FTP-Upload everything works fine. |
The installation of unchanged 2.5 is now running smoothly. |
It worked without you having to change anything, while you were trying to use MariaDB? |
When I created this error I wasn't entirely sure, now I know that Limacity is running MySQL 8.0.34-26. |
Awesome :) If you want to test it we can keep this open, if not we can close here (or we can close and then re-open, as you prefer) |
Okay, I have now set up a test environment on Debian Bookworm (stable):
Serendipity seems to run fine with MariaDB, the installation went smoothly. PHP Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in /var/www/s9y/bundled-libs/php81_bc/strftime/src/php-8.1-strftime.php:60\nStack trace: |
It seems you are missing the Debian package "php8-intl"? |
Yeah that's it! php8.2-intl was not installed. The only thing that could possibly be improved is a test during installation to see whether php8.2-intl is available. |
The following error makes a install of s9y impossible:
Unknown system variable 'storage_engine'
The use of "storage-engine" is maybe deprecated and leads to this error.
This should be changed to "default_storage_engine".
See here
The following changes will fix this issue:
File: include/db/mysqli.inc.php
Line: 296 and 300
Replace:
serendipity_db_query("SET storage_engine=
with:
serendipity_db_query("SET default_storage_engine=
This happens with s9y version 2.4.0 and 2.5beta1.
Version of MySQL or MariaDB is: 8.0.34-26
The text was updated successfully, but these errors were encountered: