Migrating from SMF to Discourse

For who us wondering about how to use the script:

  • The path is required to parse the Settings.php file and get the database connection parameters. In my case I imported the db locally and updated that file and created a folder with only this file
  • For timezone you have to write in that syntax: Europe/Rome as example and UTC
  • Add many ram to your vm. I forgot it to do it and now is important 45000 user with the default parameters
  • Don’t forget to install your discourse in your installation
  • Tweak a little bit the MySQL settings for more cache and more connections because with an huge db the connection can stop and you have to start again
  • The script reconize the already stuff imported so in case of crash you can execute again
  • I made a patched version of mysql2 to avoid invalid month/date GitHub - Mte90/mysql2: [Patched] A modern, simple and very fast Mysql library for Ruby - binding to libmysql · GitHub