MYSQL DBDump Error message

梦想的初衷 提交于 2019-12-06 09:46:43
JMM

That command is saying you want to enter the password at the prompt and dump the myDB table from the xxx database. If you get rid of the "xxx" part and enter the password at the prompt, it should work.

If you actually want to specify the password on the command line, you have to do -pWHATEVER (where "WHATEVER" is the literal password, with no space after the switch), or --password=WHATEVER, but:

Specifying a password on the command line should be considered insecure.

Documentation link

you should delete the xxx behind the -p , because the is type int the next line at the Enter password, and you should write your database name.

If you want to avoid warning "Specifying a password on the command line should be considered insecure." just use option --defaults-extra-file

For example:

/usr/bin/mysqldump --defaults-extra-file=/tmp/auth.tmp --user=xxx --tables dbname  --host localhost

Where /tmp/auth.tmp content is

[client]
password=yyyy

If you use localhost with basic user=root,password=<blank> just copy this mysqldump -d -u root -l dbname

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!