WEKA& MySQL建立连接 [英] WEKA & MySQL Setup a connection
问题描述
WEKA Explorer无法打开与MySQL的连接。
WEKA Explorer can't open a connection to MySQL.
连接到:jdbc:mysql:// MYSERVER:3306 / NAME = true
connecting to: jdbc:mysql://MYSERVER:3306/NAME = true
顺便说一句:mysql驱动程序已下载
mysql-connector-java-5.1.14-bin&
classpath已设置。
by the way: mysql driver was downloaded mysql-connector-java-5.1.14-bin & classpath was set.
(User& Pass可以,因为它适用于MySQL Workbench)
(User & Pass are ok because it works with MySQL Workbench)
当点击JButton OK(形式为Open DB)时,一个消息框显示一个错误
- 参见image:
when clicking on the JButton OK (in the form 'Open DB'), then a message box shows an error - see image:
(屏幕截图显示臭名昭着的无驱动程序错误)
(screen shot shows infamous "no driver" error)
weka版本为3.6.3。
weka version is 3.6.3.
有任何建议吗?
推荐答案
这个问题耗时半个小时,下面是答案:
Wasted half an hour on this same problem, here's the answer:
a href =http://dev.mysql.com/downloads/connector/j/ =nofollow> http://dev.mysql.com/downloads/connector/j/
Download the connector from http://dev.mysql.com/downloads/connector/j/
提取JAR文件。
编辑 C:\Program Files\Weka-3 -6\RunWeka.ini
将最后一行更改为:
cp=%CLASSPATH%;c:/mysql-connector-java-5.1.16-bin.jar
你当然可以把你的mysql连接器jar保存到不同的路径,但请注意正斜杠,在Windows上永远不会出现。
You may of course save your mysql-connector jar to a different path, but mind the forward slash, nevermind being on Windows.
这篇关于WEKA& MySQL建立连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!