Can I use mysqldump in aurora mysql ?

0

I need to transfer data from one test Aurora mysql instance to another. And don't want to set up DMS for such a small task. But any option (single-transaction etc) I give to mysqldump command, i get error:

mysqldump: Couldn't execute 'FLUSH TABLES WITH READ LOCK': Access denied for user 'dbroot'@'%' (using password: YES)

Is there an option parameter i'm missing or i cant mysqldump from Aurora mysql ?

klaabu
질문됨 한 달 전205회 조회
2개 답변
0

Hello.

The following explanation may be relevant.
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-32.html

Data and GTIDs backed up by mysqldump were inconsistent when the options --single-transaction and --set-gtid-purged=ON were both used. This was because, between the start of the transaction by mysqldump and the fetching of GTID_EXECUTED, GTIDs on the server could have increased already. With this fix, a FLUSH TABLES WITH READ LOCK is performed before fetching GTID_EXECUTED, to ensure that its value is consistent with the snapshot taken by mysqldump.

Therefore, try running the command with the option "--set-gtid-purged=OFF" as shown below.

mysqldump --single-transaction --set-gtid-purged=OFF -h {host} {schema}
profile picture
전문가
답변함 한 달 전
profile pictureAWS
전문가
검토됨 한 달 전
0

Hi,

The Aurora official documentation clearly states that it is supported: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.ExtMySQL.mysqldump.html

Also, see section "Tooling" of following doc: https://d0.awsstatic.com/product-marketing/Aurora/Aurora_Export_Import_Best_Practices_v1-3.pdf

Best,

Didier

profile pictureAWS
전문가
답변함 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠