I first run the following command:
mysqldump -u root -p password --all-databases > dump.sql
Then when I run nano dump.sql
I get the following.
Usage: mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
For more options, use mysqldump --help
I am not sure if this is right or if I am running the command wrong or something.
From mysqldump docs
If you use the short option form (-p), you cannot have a space between the option and the password
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.