I am using JDBC and new to it. but I keep getting this runtime exception:
connecting to psysical database... com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErr
It seems that the fault lies with the name of your database. MySQL is the database engine, but within MySQL you can have a number of databases with their own tables. Once you get the database name correct, you may find that the problem will resolve.