Weka Connection Database Method (MySQL)

Source: Internet
Author: User

Weka connect the database around a lot of circles, always because of some messy reasons not connected. The detailed process is now written to save time for those who use it later.

1. Configure the environment (by default, the JDK is already configured).

Create a new Lib directory under the Weka installation directory and copy the database driver for JDBC (jar package) into the \lib

Variable: Weka_home value: D:\Weka-3-6
Add Variable: ClassPath value:%weka_home%\lib\mysql-connector-java-5.0.4-bin.jar;

2. Unzip the Weka.jar with the compression software (recommended backup first), change the weka\experiment inside the Databaseutils.props file:

Jdbcdriver=jdbcdriver=com.mysql.jdbc.driver

Jdbcurl=jdbc:mysql://localhost:3306/myweka (Weka is the default database name that is displayed when connecting to the database, can be arbitrarily taken)

3. Package the changed files. The simplest way to do this is to use the compression software to package the previously extracted three folders into a zip format file. Then change the zip suffix name to jar and replace the packaged file with the previous one.

4. Connect to the database.

Weka Connection Database Method (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.