首先要保证你的电脑中安装了jdk,在jdk的安装目录下,找到如下路径
C:Program Files (x86)Javajre6libext
在该路径下载复制如jdbc的驱动jar。
在weka安装目录中找到,weka.jar的文件
按一下目录找到DatabaseUtils.props
weka.jarwekaexperiment?
在DatabaseUtils.props中修改下面部分
# General information on database access can be found here: # http://weka.wikispaces.com/Databases # # Version: $Revision: 5836 $
# The comma-separated list of jdbc drivers to use #jdbcDriver=RmiJdbc.RJDriver,jdbc.idbDriver #jdbcDriver=jdbc.idbDriver jdbcDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver(改为sqlserver的服务器) #jdbcDriver=org.gjt.mm.mysql.Driver
# The url to the experiment database #jdbcURL=jdbc:rmi://expserver/jdbc:idb=experiments.prp jdbcURL=jdbc:sqlserver://localhost;databaseName=Movie;user=sa(改为自己的数据库名字和用户名就行) #jdbcURL=jdbc:mysql://mysqlserver/username
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|