Mybb.rb imports nothing

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