For economic reasons (I’m using MySQL on RDS) ..
Is there a way to host dev, test, prod databases all in the same database? Can you use database table prefixes? or schema?
Note: there will be funds later to break them out into a true 3 server setup.
sure you can. Mysql is an RDBMS, it contains databases, plural. You would have to create different databases in your mysql instance, like “app_test”, “app_dev”, “app_prod”, and for good measure I would create a separate user and password for each, and lock down the database to make sure different users cannot modify other databases.
As a matter of practicality, I personally would not let the prod db be anything but production. Too easy to make a mistake and then oops bye bye data.