Fixed.
The issue is Morty has a newer MariaDB than Tommy, and you created your Wordpress database using a collation that doesn't exist in the older MariaDB on Tommy. After converting your data into a collation that Tommy understands it works fine now.