I had a similar problem with the phpBB3 importer.
Try changing the cache_rows
to true
.
https://github.com/discourse/discourse/blob/master/script/import_scripts/mybb.rb#L184-L186
If that doesn’t help try upgrading the mysql2 gem:
gem update mysql2