Mostly, you will only need to access your database directly from scripts within your webspace.
Occassionally, you may need access to your database from another machine such as your computer or another server.
In this situation you must add an access-host to MySQL, because access from the outside is blocked by default.
This demonstration shows how to add an access-host to MySQL.