Let's say a hacker gains root access to a server containing password protected MySQL.
Well, if we they simply reset the MySQL root password, given a few simple commands, doesn't that defeat the point in having it password protected in the first place?
For example, is there a well-practised technique in which one can segregate MySQL and prevent such a thing from happening. The only thing I could think of was, perhaps, moving the database to a different server all together.
All thoughts welcome.
Edit
I understand that MySQL passwords allow for multiple accounts, with various permissions, and nothing more. My question is more focused on how to isolate the database, so if infiltrated one can't simply dip into your database records.