I used the mysqldump
command to export the database without specifying the export location.
mysqldump -u username -p database
The export has been completed!
-- 导出完成于2023-07-25 15:58:32
Is it possible to store an exported file without specifying the location file?
If possible, is there a way to find the location of the exported file?
If this is not possible, what happens to the completed export file?
I tried to find the location of this export file, but no logs, directories or filenames were found.
If no output file is specified when executing the MySQL dump command, by default, the output SQL data will be displayed on the terminal (command line window) instead of being saved to a file. This means that you will see the generated SQL statement output directly on the screen, but it will not be saved to any file. This usage is typically used to view the results of a dump command or to manually copy and paste these SQL statements elsewhere.
If you want to save directly to a file, you need a configuration file.
mysqldump [options] > dump.sql
.