You can ssh into the db if you have an account with the db. If this account has admin rights you can change whatever permissions you need. Which db are you talking about?