Link to home
Start Free TrialLog in
Avatar of jhshukla
jhshuklaFlag for United States of America

asked on

using phpMyAdmin with MySQL

is it possible to export tables of stored procedures from a MySQL DB using phpMyAdmin? I know it can export data tables but i need to export stored procs. http://www.phpmyadmin.net/documentation/
if yes, how?
ASKER CERTIFIED SOLUTION
Avatar of snoyes_jw
snoyes_jw
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jhshukla

ASKER

when you say "stored procedures are held in the information_schema database", it raises the question - are procedures shared between multiple databases?
No.  You'll see a field in the routines table called `routine_schema`, which names the database to which the procedure belongs.
in that case, can the procedure be shared? i am not asking whether it is shared or not, but is it possible to name multiple databases in routine_shema?
No.  You can run a procedure from one database while using another using schema_name.procedure_name syntax, just like you can select from tables in different databases in a single query.  But a procedure belongs to just one database.