Install a JDBC connector in TC Server

Home > Search
  by

First, you will download the JAR for the type of SQL database being used.

 


Linux

Move the MySQL connector tar archive onto your TC Server (Linux in this example). Decompress the gzip compress tar archive.

~]# gunzip mysql-<version>.tar.gz

 

Extract the tar archive.

~]# tar -xf mysql-<version>.tar

 

Copy the MySQL JAR into the appropriate directory of the application server that will be used to run your Java project. For example, if your Java project will be run using Tomcat, you would copy the MySQL JAR to the $tomcat_home/lib directory.

~]# cp mysql-connector-java-version-bin.jar /opt/tc-server/lib/
or
~]# cp mysql-connector-java-version-bin.jar /opt/tc-server/tomcat-<version>.A.RELEASE/lib/

 

Add the MySQL JAR to your classpath.

export CLASSPATH=/opt/jdbc/mysql-connector-java-version-bin.jar:$CLASSPATH

 


Windows

Extract the MySQL connector zip. Move the MySQL JAR into the appropriate directory of the application server that will be used to run your Java project. For example, if your Java project will be run using Tomcat, you would copy the MySQL JAR to the $tomcat_home/lib directory.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments