1

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

Touheed Khan
  • 2,149
  • 16
  • 26
Simon Nielsen
  • 41
  • 1
  • 6

1 Answers1

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