Hi there :)
First I wanted to inquire if your DB is local or in the cloud (like this
cloud database or
AWS’ MySQL solution)? (you cannot be sure today ;))
If you are using one of the managed solutions, try looking in their guides or support sections. If you are managing your own local DB, then my recommendation is checking using CREATE database DDL with an [IF NOT EXISTS] argument. So when trying to detect your DB, you should try running the following query:
CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
[create_specification] ...
Using this script in your query should create a DB in case one does not exist and if a DB exists it should return no error. In such a case, try reconnecting to your DB (after re-checking you got all details right, oh how many times hours of trying to figure out what’s wrong with some script to find it was all due to a typo).
Hope this helped some, Diana