How to Block normal user access to mysql
Question need more info. 

Unless we set .my.cnf (mysql clinet) on the server, No one can access by mysql simply by hitting mysql, Else you need do mysql_secure_installation to set mysql root password if you haven't done it before.