PHP Database Dump Script - are there any issues?

后端 未结 6 2009
梦谈多话
梦谈多话 2020-12-17 07:35

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

6条回答
  •  一整个雨季
    2020-12-17 07:56

    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.

提交回复
热议问题