IF you want for some reason start from scratch and make new DB or anything else regarding mysql queries, you should first find out the name of your DB container and then with that name run command below and you will have access to SQL and you can then drop and recreate DB.
docker exec -ti my_drupal82_project_mariadb mysql -uroot -ppassword