How to connect DB and execute query ubuntu

How to connect DB and execute query ubuntu

Can help me.

                    New to ADSelfService Plus?