Unable to connect to MariaDB - Database Debugging

OLD TITLE
Getting this - The following packages have unmet dependencies: mariadb-server : Depends: mariadb-server-10.4 (>= 1:10.4.14+maria~bionic) but it is not going to be installed E: Unable to correct problems, you have held broken packages

am trying to solve this error - Could not connect to the database.

Please refer to suitecrm.log for details

and now am getting this -

The following packages have unmet dependencies:  mariadb-server : Depends: mariadb-server-10.4 (>= 1:10.4.14+maria~bionic)

but it is not going to be installed
E: Unable to correct problems, you have held broken packages

for mariadb and mysql both

Which server/OS are you using?
This is how to reinstall mariadb for Ubuntu

  1. sudo apt-get remove --purge mariadb-server mariadb-client
  2. sudo apt-get autoremove
  3. sudo apt-get autoclean
  4. sudo apt-get install mariadb-server mariadb-client

already tried still not working…using ubuntu 18.04

Still running the old version of SuiteCRM? @Pam make sure your dependency version are correct for the version your using, this may be your cause