How to create a connector file for loading db to grid

PLease help.! I am looking to populate my grid with a db table in mysql… using base language java i have seen the php video i guess i need to create a similar java file like the (connector.php) consisting of the actual connection how can i do this please help .

You can look at java version of connectors lib, it has sample of db loading for the scheduler. dhtmlx.com/x/download/regula … r_java.zip

i downloaded this jar but its not taking username and password specified in that file !!
its gives me load XML error…
what to do now ???

Sorry, but it is not clear which username and password do you mean, because the linked file doesn’t require any passwords