1、mysqldump -d -uroot -proot cfm>cfm-create.sql
2、修改文件拥有者(为下载作准备)
chown yourusername /home/yourusername/cfm-create.sql
3、下载到本机
scp yourusername@10.10.30.120:/home/yourusername/cfm-create.sql /Users/yourusername/Desktop
1、mysqldump -d -uroot -proot cfm>cfm-create.sql
2、修改文件拥有者(为下载作准备)
chown yourusername /home/yourusername/cfm-create.sql
scp yourusername@10.10.30.120:/home/yourusername/cfm-create.sql /Users/yourusername/Desktop