Depends on your mysql setup.
The person wouldn't be able to hack phps, or htmls... since all they have is a username/password for a single mysql database.
Now, if you ALLOW remote access to the database with that username/password, then the hacker could effectively destroy all data in that database, or alter it, or change it around, or (god forbid) you had credit card numbers stored in it, do a WHOLE lot worse.
Simple solution for that: Do not allow remote connections to your mysql database. Admin your database strictly with root user through ssh shell.