Configurando conexão do Java com MySQL

1 – Instale o pacote libmysql-java

apt-get install libmysql-java

2 – Adicione o mysql-connector ao CLASSHPATH do Java

echo 'export CLASSPATH=/usr/share/java/mysql-connector-java.jar:$CLASSPATH' >> /etc/profile
Advertisements