I need to make a php script that can copy stored procedure and function from one database to another, how can i do this ? The database is mysql and there 2 database are not on the same server
Asked
Active
Viewed 3,553 times
1
-
Hi! Please check [ask] – Logan Wayne May 03 '17 at 07:38
-
Check this http://stackoverflow.com/questions/1968773/view-stored-procedure-function-definition-in-mysql#answer-1968798 – Aman Rawat May 03 '17 at 07:50
-
You'd better get writing some code then if you need it – Professor Abronsius May 03 '17 at 07:51
-
Possible duplicate of [View stored procedure/function definition in MySQL](http://stackoverflow.com/questions/1968773/view-stored-procedure-function-definition-in-mysql) – NetVicious May 03 '17 at 08:26
1 Answers
2
I hope this helps.
SHOW CREATE PROCEDURE DB_Name.Procedure_Name;
use New_DB_Name
create procedure again.

Faizan Younus
- 793
- 1
- 8
- 13