导出数据库的结构不含数据

mysqldump -h localhost -uroot -p -d db_name>xxxx.sql -S /xxx/mysql.sock
原文地址:https://www.cnblogs.com/bass6/p/5884345.html