This demo provides you with a template for connecting to your own MySQL database.
-
Download or clone this repository.
-
Navigate to the
MySQL
directory. -
In
index.jsp
, replace the values for host, user, pass, dbname, query, and colname with your MySQL instance info. -
Upload
index.jsp
to your web server, or add it to a directory within your Document Root directory of a local web server. -
Navigate to the page in your favorite browser.
-
Bask in the glory of your chart!
Note the required JDBC driver file mysql-connector-java-5.0.8-bin.jar
in the WEB-INF/lib directory. Src:Connector/J