认证0级讲师
mysqldump -u mysql_user -ppassword database_name > backup.sql
For example, if your password is 123456, it should be -p123456-p123456而不是 -p 123456 instead of -p 123456
-p123456
-p 123456
Note the words in bold:
For example, if your password is 123456
, it should be
-p123456
-p123456
而不是
-p 123456
instead of-p 123456