-
Notifications
You must be signed in to change notification settings - Fork 1.1k
常见错误
ysc edited this page Mar 13, 2013
·
15 revisions
1、第一次导入数据失败
问题描述:
第一次运行出现错误 “Incorrect string value: 'xE6x95xB0xE6x8DxAE...' for column 'chinese' at row 1”,此错误位于日志 “第一次注册第一个数据字典: 数据字典” 的下一行
解决方法:
重新安装MYSQL并指定编码为UTF-8
2、第一次连接数据库失败
问题描述:
第一次运行出现错误 “java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)“
解决方法:
将数据库用户root的密码设置为root
打开命令行窗口,运行如下目命令:
mysql -u root -p
use mysql;
update user set user="root" where user="root";
flush privileges;
3、第一次运行中文分词报错
问题描述:
第一次运行出现错误“Caused by: net.paoding.analysis.exception.PaodingAnalysisException: dic home should not be a file, but a directory!”
解决方法:
签出的项目APDPlat所在的路径不能有空格,以后会使用MMSEG4J替换庖丁分词器