If the client has multiple databases, this script also helps us to find out which database and particularly which database file is the most used.
Earlier today I saw the question in an online forum where the user was looking for ways to recover Dropped Performance Schema Database in MySQL.
This is a very interesting function and it helps us to list databases where User Has DB Access. Well, it is pretty straightforward to know with the help of function HAS_DBACCES.
Today I complete my 15th year of blogging at SQLAuthority.com. I am truly honoured that many are reading my blog after 15 years.