Connecting MySQL DB to Apple iWork Numbers?
There is no way to make Numbers get data from a database. (It's more of a consumer tool.) https://discussions.apple.com/thread/1827581

A workaround: you can use Excel to grab the data, and import the XLS file to Numbers for prettier chart-making.