I am trying to drop my databases that are named "login-system" and "test-application" in PHPMyAdmin, but it's giving me an error on the "-" it says "Unexpected token. (near -)".
You can escape object names in MySQL using the backtick character:
DROP DATABASE `login-system`
-- Here ------^------------^