Help with getting a database backup from Lightsail Database

0

Hi

I'm struggling with finding a way to get a dump of my database that is hosted in the Lightsail Database service. It's a task that is required from time to time to take a copy to use in development to fix a particular issue. I've tried using MYSQLDUMP from the server that is connecting to the database for the application but every attempt results in an error 'access denied for user 'username'@'IP Address'.

I'm using the same connection details that my application is using but nothing appears to work.

Any advice?

Thanks

Paul.

질문됨 5년 전904회 조회
1개 답변
0

If anyone else needs this I was able to get a backup using the syntax:

mysqldump --single-transaction --column-statitstics=0 -h insert-your-endpoint -u username -P 3306 -p"your password" database-name > database-backup.sql

I can't confirm that it will definitely work for you but did for me.

답변함 5년 전

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

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

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

관련 콘텐츠