I’ve no knowledge of Rails and hence, none that of discourse. I’m trying to migrate flarum database to discourse.
P.S: I’ve successfully installed discourse for production.
Right now, I’ve installed discourse docker from official git repository. When I try to run the import script in docker container:
su discourse -c 'bundle exec ruby script/import_scripts/flarum_import.rb'
I get this error:
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `require': cannot load such file -- mysql2 (LoadError)
from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
I’ve tried all methods explained in different forum posts but none worked.
If anyone could explain in 2-3 steps what to do to run ‘flarum_import.rb’ import script, that’d be a great help.