is there a function i can use to test the connection to my database

i have a feeling that you may have given me the wrong username or password because i can't connect