mariadb 10.2.44의 mysqldump는 CentOS 7이 작동하지 않지만 mysql은 작동합니다.

mariadb 10.2.44의 mysqldump는 CentOS 7이 작동하지 않지만 mysql은 작동합니다.

CentOS 7 마리아DB 10.2.44.

X [root@psa95 ~]$ rpm -qa | grep Maria
MariaDB-server-10.2.44-1.el7.centos.x86_64
MariaDB-common-10.2.44-1.el7.centos.x86_64
MariaDB-compat-10.2.44-1.el7.centos.x86_64
MariaDB-client-10.2.44-1.el7.centos.x86_64
✓ [root@psa95 ~]$ cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

클라이언트, mysqldump, mysql에 대한 섹션과 함께 /root/.my.cnf에 자격 증명이 제공됩니다.

X [root@psa95 ~]$ mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 4875
Server version: 10.2.44-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> Bye
✓ [root@psa95 ~]$ mysqldump mysql
mysqldump: Got error: 1045: "Access denied for user 'root'@'localhost' (using password: YES)" when trying to connect

mysql 명령이 작동합니다. mysqldump 명령은 그렇지 않습니다.

-p를 사용하여 비밀번호를 묻는 메시지를 표시하고 명령줄에 사용자 이름과 비밀번호를 입력해 보았습니다. 같은 것 - mysql에서는 작동하지만 mysqldump에서는 작동하지 않습니다.

정확히 동일한 MariaDB 버전과 .my.cnf의 동일한 설정을 사용하는 또 다른 CentOS 7 시스템이 완벽하게 작동합니다. 두 시스템의 mysqldump 바이너리를 비교했는데, 둘은 동일했습니다.

나는 Google을 뒤져 내가 찾을 수 있는 모든 아이디어를 시도했습니다. 그 중 아무것도 작동하지 않았습니다. 또 무엇을 시도할 수 있나요? 문제를 해결하려면 어떤 다른 정보가 필요합니까? 비밀번호가 좋은 것으로 알고 있습니다. 이는 mysql 명령과 함께 작동합니다.

답변1

문제는 mysqldump가 제대로 작동하려면 --ssl이 필요하다는 것이 밝혀졌습니다.

관련 정보