mysqldump Got error: 1045

mysqldump执行时Got error: 1045: Access denied for user  'root'@'localhost' (using password: YES) when trying to connect

我的解决是增加-h参数不再报错

/usr/local/mysql/bin/mysqldump -utest -ptest -h192.168.1.100 --databases test >test20200113.sql

请使用浏览器的分享功能分享到微信等