Skip to content
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

problems from hard-coded storage engines #8133

Open
arlomedia opened this issue Mar 11, 2024 · 0 comments
Open

problems from hard-coded storage engines #8133

arlomedia opened this issue Mar 11, 2024 · 0 comments

Comments

@arlomedia
Copy link

Basic Information

I recently moved to a new web host (Digital Ocean, with a managed MySQL database) that only allows the InnoDB storage engine. This broke the forum search function, which creates temporary tables with the Memory storage engine. I had to edit Sources/Search.php to change those to InnoDB.

Similarly, when I upgraded the forum from version 2.0.19 to 2.1.4, the upgrade*.sql scripts tried creating several new tables with the MyISAM engine. I had to edit these scripts before I could complete the upgrade.

I saw an earlier ticket (#772) about adjusting automatically to use whatever storage engines are available, and it was marked as completed, but apparently that didn't remove all the instances of hard-coded storage engines, or new instances were added since then.

Steps to reproduce

  1. Install the forum on a database server with no Memory or MyISAM support.
    2a. Try using the forum search function.
    2b. Try running the upgrade script.

Expected result

SMF should adapt to the available storage engines.

Actual result

Search function fails with the error "Database Error: Storage engine MEMORY is disabled (Table creation is disallowed)."

Upgrade is impossible without manually editing the upgrade scripts. (I didn't save the error messages.)

Version/Git revision

2.1.4

Database Engine

MySQL

Database Version

8.0.30

PHP Version

8.0.30 (yes, the same as the MySQL version!)

Logs

No response

Additional Information

When I moved the forum to the new host, I used Sequel Ace to export the database from the old server and import onto the new server. That must have changed the storage engines automatically, because they were MyISAM on the old server and are InnoDB on the new server and I didn't have to intervene with that.

I used rsync to copy the files from the old server to the new server and ran it like that for about a week before upgrading to version 2.1. I'm guessing the search function didn't work before upgrading, but am not sure; I cleared the error log when upgrading because it had grown to 1.6 GB during that week due to various PHP issues from a newer PHP version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant