Table of contents
1. First create a file ending with .sql
2. Open the decompression directory named mysq and export the data
1. Database export
1. First create a file ending with .sql
Pass touch ssm.sql (Editor) Actually: touch xxx.sql
After creating the file, check the path through pwd copy path /path/xxx.sql ( Prepare for subsequent database export)
2. Open the decompression directory named mysq and export the data
Open the mysql installation directory via cd and enter the quality
mysqldump -u root -p ssm> /root/java/sql/ssm.sql
Where ssm is the database name
>The following is the path that the editor needs to copy above.