前言:
如果数据库比较大,最好使用mysql
dump
命令备份更多的数据库,但是备份 my
sql
5.7 版本 5.7 以上的数据库时会出现错误。
错误显示如下两种
1、mysqldump
: [Warning
] Using
a
password
on
the
command
line
interface
can
be
insecure
.
这个错误问题是因为从 mysql5
.7 开始就不能在命令代码中留密码了,这样才能保证信息的安全。当然,留下来也没关系,不影响进度。
2、mysqldump
: Error
: ‘Access
denied
; you
need
(at
least
one
of
) the
PROCESS
privilege
(s
) for
this
operation
’ when
trying
to
dump
tablespaces
这个错误实际上可以忽略。如果觉得难看,就在 mysqldump
的末尾加上“- no
-tablespaces
”。
mysqldump
-uidcxen
-pidcxencom
idcxen
> idcxen
.sql
--no
-tablespaces