Linux:java ODBC driver additions under MySQL

Source: Internet
Author: User

1, Mysql-connector-java-5.1.7-bin.jar Add location: Under the/jre/lib/ext/directory under the JDK root directory;

2.Configure environment Variables for Linux: (remember source. bash_profile)
. Modify the/etc/profile file (global All users)
vi this file/etc/profile
at the end of the profile file, add:
Export java_home=/usr/java/jdk1.6.0_20
Export path= $JAVA _home/bin: $PATH
export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JAVA _home/jre/lib/ext/ Mysql-connector-java-5.1.7-bin.jar
. Modify the. bash_profile file (using these environment variables for a user right)
At the end of the . bash_profile file, add:
Export java_home=/usr/share/jdk1.6.0_20
Export path= $JAVA _home/bin: $PATH
export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

3, Logout

4. Re-Login

5. OK

Linux:java ODBC driver additions under MySQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.