php - Porting stored procedures between MySQL servers -


i have inherited web-application project (php/mysql) makes extensive use of stored procedures, , unsure how transfer these local machine development.

specifically, exporting , importing of these stored procedures facing difficulty (with ultimate aim of being able automate installation of "base" version of application database, complete stored procedures).

i shall state bits , pieces believe understand:

  • i can export information_schema.routines table, cannot import (phpmyadmin) onto local server (i believe information_schema system database?)

  • as not have shell/command-line access "online" mysql servers, tools such mysqldump of limited use (to port local testing machine, not vice versa)

  • the command show create procedure procedure_name; supposed output sql can used create procedure, can't seem functioning correctly (error 1305 (42000): procedure deladdress not exist)

  • assuming the above works, next step have looped export stored procedures (..and run via phpmyadmin elsewhere, import it)

please correct incorrect, , provide guidance on how automate porting between database servers.

many thanks

use mysql workbench's migration feature. whole thing free , amazing job.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -