Mysqldump error: 1043: bad handshake when trying to connect

I’m getting this on mysql 5.0 only , so suspect thats the cause, its fine on 5.5+ and percona