未findmysqlimport文件错误

我正在按照本页上的说明设置一个用于基因注释的本地数据库。 他们提供一个.sql文件来创build一些MySQL表结构(步骤4)和几个数据文件来填充表(步骤5-7)。 我已经通过步骤5完成了安装过程,但在步骤6中出现了错误。令人不安的是,我得到的错误与我执行mysqlimport命令的目录不同。

 standage@farnsworth:~$ mysqlimport -u wendel2go -p --fields-terminated-by='\t' b2g Desktop/gene2accession Enter password: mysqlimport: Error: 13, Can't get stat of '/var/lib/mysql/Desktop/gene2accession' (Errcode: 2), when using table: gene2accession standage@farnsworth:~$ cd Desktop/ standage@farnsworth:~/Desktop$ mysqlimport -u wendel2go -p --fields-terminated-by='\t' b2g gene2accession Enter password: mysqlimport: Error: 29, File '/var/lib/mysql/b2g/gene2accession' not found (Errcode: 2), when using table: gene2accession 

当我search这个错误时,我没有得到非常有用的结果。 有任何想法吗?

更新 :当我使用文件的完整path时,仍然出现错误,但是找不到的文件现在是不同的。

 standage@farnsworth:~$ mysqlimport -u root -p --fields-terminated-by='\t' b2g /home/standage/Desktop/gene2accession Enter password: mysqlimport: Error: 29, File '/home/standage/Desktop/gene2accession' not found (Errcode: 13), when using table: gene2accession standage@farnsworth:~$ list /home/standage/Desktop/gene2accession -rw-r--r-- 1 standage standage 1.6G 2010-12-01 14:31 /home/standage/Desktop/gene2accession 

该文件存在,这不是一个权限问题。

尝试文件的完整path:

 mysqlimport -u wendel2go -p --fields-terminated-by='\t' b2g /home/username/Desktop/gene2accession 

用你的用户名replace“用户名”。