Install and Config Mariadb

Was able to perform all the steps to install mariadb server. Create database, create user, grant priveleges to user. Then restore the dumped data into created database. Edited the wp-configfile with the dbhost, user, password. But it shows Error in Database connection. Even database is viewable in app-server. Dont know why its not working in LBR link.