How to connect a MYSQL database with Weka ?
This tutorial explains making a connection between MySql database with weka.
PRE-REQUISITE:
- MYSQL already installed windows OS system at port Number: 3306
- Download the mysql-connector-java-5.0.8-bin.jar
- Windows operating system(OS)
Follow these steps to download and
install weka - mysql database connection on your Windows machine.
Step 1:
Find jdbc jar file: in my case jar path is ==>C:\Users\Reddy\Java-JDBC\JavaJdbctest\mysql-connector-java-5.1.36-bin.jar
(Download from following link: https://dev.mysql.com/downloads/connector/j/5.0.html)
Step 2:
Step 2:
Copy mysql-connector-java-5.1.36-bin.jar file to => C:\Program Files\Weka-3-6
Now go to your weka installed folder and try to locate RunWeka.ini file , and modify 'RunWeka.ini" file with notepad/wordpad editor.
"RunWeka.ini" by default located at => C:\Program Files\Weka-3-7\RunWeka.ini
"RunWeka.ini" by default located at => C:\Program Files\Weka-3-7\RunWeka.ini
find and bring following changes to last line where cp=%CLASSPATH%;
Save changes to RunWeka.ini file
Now go Weka GUI Chooser > Tools > SqlViewer(ctrl+s)
Figure :1.2
Replace default URL with jdbc:mysql://localhost:3306/test (Figure: 1.3)
Figure : 1.3
Enter your username : root(by default ) and Password that you already set to mysql user (Figure:1.4)
Figure:1.4
Now click on connect button
Key words : weka mysql database connection, weka, database , weka-3-6.3.7
This comment has been removed by a blog administrator.
ReplyDeleteThnks you saved my time
ReplyDeleteThis comment has been removed by the author.
ReplyDeletei follow those step but still i face problem
ReplyDeletework for me
ReplyDeleteThanks for sharing the useful blog about connecting My SQL database with Weka.
ReplyDeleteCustom Web App Development Company in Coimbatore