读书人

java连接mysql异常

发布时间: 2013-12-05 22:27:44 作者: rapoo

java连接mysql错误
源码就是很简单的连接代码,没有错误。应该是驱动有问题

ERROR: index path not specified

Usage: java org.apache.lucene.index.CheckIndex pathToIndex [-fix] [-segment X] [-segment Y]

-fix: actually write a new segments_N file, removing any problematic segments

-segment X: only check the specified segments. This can be specified multiple

times, to check more than one segment, eg '-segment _2 -segment _a'.

You can't use this with the -fix option

**WARNING**: -fix should only be used on an emergency basis as it will cause

documents (perhaps many) to be permanently removed from the index. Always make

a backup copy of your index before running this! Do not run this tool on an index

that is actively being written to. You have been warned!

Run without -fix, this tool will open the index, report version information

and report any exceptions it hits and what action it would take if -fix were

specified. With -fix, this tool will remove any segments that have issues and

write a new segments_N file. This means all documents contained in the affected

segments will be removed.

This tool exits with exit code 1 if the index cannot be opened or has any

corruption, else 0.
这个错误为什么说索引没有找到?

**************************
DescriptionResourcePathLocationType
Project 'testsql' is missing required library: 'C:\mysql-connector-java-5.0.8\mysql-connector-java-5.0.8-bin.jar'testsqlBuild pathBuild Path Problem

[解决办法]
C:\mysql-connector-java-5.0.8\mysql-connector-java-5.0.8-bin.jar
这个没找到吧
[解决办法]
元首的意思是这个JAR包有么

读书人网 >Eclipse开发

热点推荐