- option 1
- ubuntu
- apt-get install libmysql-java
- export CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java.jar
- centos
- yum -y install mysql-connector-java
- option 2
- cd /usr/share
- mkdir java
- cd java
- download the latest stable version from http://www.mysql.com, or
- wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.38.zip
- unzip mysql-connector-java-5.1.38.zip
- cp mysql-connector-java-5.1.38/mysql-connector-java-5.1.38-bin.jar .
- ln -s mysql-connector-java-5.1.38-bin.jar mysql-connector-java.jar
- sudo chmod 644 /usr/share/java/mysql-connector-java.jar
Friday, December 30, 2016
Setting mysql-connector-java
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.