Install the WP-DBManager plugin
If you install WP-DBManager you must add the htaccess example provided by the plugin into the wordpress-htaccess.conf file and you must create an empty .htaccess file in the backup-db directory to pass the plugin checks. To do it, run the commands below:
$ echo '<Directory "/opt/bitnami/wordpress/wp-content/backup-db">' >> /opt/bitnami/apache/conf/vhosts/htaccess/wordpress-htaccess.conf
$ cat /opt/bitnami/wordpress/wp-content/plugins/wp-dbmanager/htaccess.txt >> /opt/bitnami/apache/conf/vhosts/htaccess/wordpress-htaccess.conf
$ echo "" >> /opt/bitnami/apache/conf/vhosts/htaccess/wordpress-htaccess.conf
$ echo '</Directory>' >> /opt/bitnami/apache/conf/vhosts/htaccess/wordpress-htaccess.conf
$ touch /opt/bitnami/wordpress/wp-content/backup-db/.htaccess
Finally, once you activate the plugin in your WordPress dashboard, you must ensure that in the plugin DB Option the mysql and mysqldump paths are correct. For example, use the paths /opt/bitnami/mariadb/bin/mysql and /opt/bitnami/mariadb/bin/mysqldump.