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.routinestable, cannot import (phpmyadmin) onto local server (i believeinformation_schemasystem database?)as not have shell/command-line access "online" mysql servers, tools such
mysqldumpof 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
Post a Comment