Description: Inquires the database first need to import database corresponding JDBC Driver package code: need a Driver, a forname Driver. Connect (... Connection, usually in url specified remote host s IP or name, different database JDBC url have different written) get a Connection after this... You understand. ~ added: UnknownHostException refers to the corresponding host could not be detected, in your machines on do such test: ping the host Telnet host port if the two are passed, general will not have the exception. If appear similar not allowed access to the database of the case, to pay attention to the database users to add the corresponding privileges
To Search:
File list (Check if you may need any files):
SearchDemo.class
SearchDemo.java