Its not a good idea. First, setting up MySQL would be a pain on client computers. Second, MySQL is a seperate process/service. Third, relational databases like MySQL aren't easy to extend with. If you wanna add a new stat, you'll need a new query etc. If you want to add a unit-specific attribute, its not possible. Fourth, there is a reason why no one's done this before...
You got a ton of other choices:
Code:
<!-- XML: -->
<?xml version="1.0" encoding="utf-8" ?>
<race name="farm">
<unit name="pony">
<speed value="5" />
<damage value="10" />
<comment>A deadly creature with claw-like fangs.</comment>
</unit>
...
</farm>
Code:
// text data file:
unit
{
name = "pony";
speed = 5;
damage = 10;
comment = "A deadly creature with claw-like fangs.";
}
Code:
binary lol:
¨Ñ¤L‹¦¨Ö=:¯º!¹}ZUöŸ†Mé