1. Determine the Lightsail root password

    cat bitnami_application_password
  2. Export the database

    mysqldump -u root -p -h localhost bitnami_wordpress > /opt/bitnami/wordpress/backup.sql
  3. Download the export file and import via local DB tool