How can I connect pivottable to mysql database?

Which File I have to use?
Do you have any step by step guide?
and I just want demo/sample code to connect to mysql database(with php)

Thanks

As the Pivot is a client-side tool, the only thing that matters is the type of receiving data (JSON by default). In case of MySQL, you need to use the data connectors.

A sample (for the datatable) you can find at

samples/40_serverside/02_php_connector/01_datatable_loading.html

and test it locally.