I found a PHP function to dump a mySQL database that someone else had written, and then cleaned it up and formatted it a bit. I wanted to know if I could get a critique of i
This will not dump stored procedures, functions, views, triggers and so on.
Edit: You can dump procedures etc. this way too. Just use i.e. SHOW PROCEDURE STATUS;
to get the list of procedures and then SHOW CREATE PROCEDURE
for each procedure. The same thing for functions, views, triggers...
Don't forget SHOW CREATE DATABASE;
either.