Wells Fargo interview question

How to connect to database in shell ?