Mybb.rb לא מייבא כלום

Are you setting the DB variables as shell environment variables? Before running the script, you should run the export commands in your shell.