存储过程及函数导出:mysqldump -u[username] -p[password] -h[localhost] -P[3306] -n -d -t -R dbName>procedure.sql
参数说明:
-u用户名
-p密码
-h主机
-P数据库端口
-n: --no-create-db 导出的文件不含数据库创建语句
-d: --no-data 导出的文件不含insert语句
-t: --no-create-info 导出的文件不含建表语句
-R: --routines Dump stored routines (functions and procedures)
参数说明:
-u用户名
-p密码
-h主机
-P数据库端口
-n: --no-create-db 导出的文件不含数据库创建语句
-d: --no-data 导出的文件不含insert语句
-t: --no-create-info 导出的文件不含建表语句
-R: --routines Dump stored routines (functions and procedures)