Hi.
If you look at the example code that can be found in previous posts, then you will find this line of code in social.js file:
Social.netChartDataUrl = Social.assetDataPath + "graph.json";
Just change it to some page where you write logic for data retrieval from MySQL.
And if you inspect graph.json file, you will find data structure that should be returned to the NetChart.