Connecting MariaDB on MySQL Workbench

I installed ERP Next on Amazon Web Service EC2 by using the Ubuntu Instance. It’s currently working but we want to modify doctypes by accessing the codes and also the database structure. Hope you will give me step by step tutorial on it.