Rootop 服务器运维与web架构

mysqldump只备份函数

# 只导出表结构 --no-data
C:\Users\admin\Desktop>"c:\Program Files\mysql\MySQL Server 8.0\bin\mysqldump.exe" -uroot -proot test_db1 --no-data > test_db1.sql

# 只导出数据,不带表结构 --no-create-info
C:\Users\admin\Desktop>"c:\Program Files\mysql\MySQL Server 8.0\bin\mysqldump.exe" -uroot -proot test_db1 --no-create-info > test_db1.sql

# 只导出存储过程和自定义函数
C:\Users\admin\Desktop>"c:\Program Files\mysql\MySQL Server 8.0\bin\mysqldump.exe" -uroot -proot test_db1 --no-data --no-create-info --routines > test_db1.sql

mysqldump备份参数参考

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/5483.html

作者:Venus

服务器运维与性能优化

评论已关闭。