I know that you can export a database from phpmyadmin. Is there a way of sending a an sql query that will export all the tables with information?
the script will go as follows:
- user fill in a form and sends it to the server
- server creates a database
- server populates that database with tables
- server selects all the tables
- server sends that back to the user as an sql file to download
For example, in phpmyadmin you can select a database and "export all tables" as SQL.
I think I'm looking for a select statement something along the lines of: SELECT all tables FROM database