modified logic for MariaDB installed instead MySQL