I have a few Wordpress databases that need to have the tables renamed. I would like to make a script to batch process this.
Currently the databases have names like this:
How could I change them to have their names like this:
I found this webpage that does something similar but they are adding a prefix to the table name, I want to take characters away.