Mac下Weka访问MySQL数据库

来源:转载

1.到MySQL官网(http://dev.mysql.com/downloads/connector/j/)下载Connector/J(Connector/J is the official JDBC driver for MySQL)。

2.解压缩文件mysql-connector-java-5.1.37.zip,把解压缩后的文件mysql-connector-java-5.1.37-bin.jar放到

/Applications/weka-3-7-13-apple-jvm.app/Contents/Resources/Java/目录下。

3.右键Weka启动图标(weka-3-7-13-apple-jvm),显示包内容,编辑Info.plist文件,在ClassPath中增加一行:

/Applications/weka-3-7-13-apple-jvm.app/Contents/Resources/Java/mysql-connector-java-5.1.37-bin.jar

4.在Weka Explorer界面点击open DB,输入:jdbc:mysql://localhost:3306/database即可。


分享给朋友:
您可能感兴趣的文章:
随机阅读: