It seems there is an error connecting to the database using the credentials from wp-config. Have you changed the database connections settings in the wp-config.php file?
Can you try manually accessing the WordPress database with the following command:
mysql -h 127.0.0.1 -ubn_wordpress -pDB_PASSWORD
Note DB_PASSWORD is a placeholder. You can get the value with this command:
cat /opt/bitnami/apps/wordpress/htdocs/wp-config.php | grep DB_PASSWORD