I am attempting to connect to my local MySQL server with the following code:
dbURL = \"jdbc:mysql://localhost:3306:/\" + dbname; try{ Class.forName(\"com
Install MySQL connector for JAVA
sudo apt-get install libmysql-java
Set classpath
export CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java.jar
Source: http://marksman.wordpress.com/2009/03/01/setting-up-mysqljdbc-driver-on-ubuntu/