Zhenguo Zhang
2011-02-01 02:56:40 UTC
Dear UCSC team,
Sorry to interrupt.
I have installed the tools from
http://hgdownload.cse.ucsc.edu/admin/jksrc.zip successfully. I think some of
the tools need using mysql tables. Since my mysql data is not at the
standard place /var/lib/mysql/, when I ran 'hgLoadSqlTab hg18 chromInfo
chromInfo.sql chromInfo.tab', I got the error message:
Couldn't connect to database hg18 on localhost as ucsc.
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)
Here 'ucsc' is the name I specified in ~/.hg.conf for connecting mysql
database. I also tried this user name and am sure it works. My actual place
for mysql.sock is at /home/zhangzg/mysql/mysql.sock, which has been
correctly set in mysql config file ~/.my.cnf.
Now I have no administrator privilege to set a symbol link at
'/var/lib/mysql/mysql.sock'. Is it possible to modify the code in jksrc.zip
to point to the correct place of mysql data? or any advice which does not
need administrator privilege? I have searched the mailing list and
unfortunately I can not find solution for my case.
Thank you in advance!
Best wishes!
Zhenguo
PS: other tools relying on mysql also show the same problems, such as
mafFrags. However, hgsql works. I have no idea why.
Sorry to interrupt.
I have installed the tools from
http://hgdownload.cse.ucsc.edu/admin/jksrc.zip successfully. I think some of
the tools need using mysql tables. Since my mysql data is not at the
standard place /var/lib/mysql/, when I ran 'hgLoadSqlTab hg18 chromInfo
chromInfo.sql chromInfo.tab', I got the error message:
Couldn't connect to database hg18 on localhost as ucsc.
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)
Here 'ucsc' is the name I specified in ~/.hg.conf for connecting mysql
database. I also tried this user name and am sure it works. My actual place
for mysql.sock is at /home/zhangzg/mysql/mysql.sock, which has been
correctly set in mysql config file ~/.my.cnf.
Now I have no administrator privilege to set a symbol link at
'/var/lib/mysql/mysql.sock'. Is it possible to modify the code in jksrc.zip
to point to the correct place of mysql data? or any advice which does not
need administrator privilege? I have searched the mailing list and
unfortunately I can not find solution for my case.
Thank you in advance!
Best wishes!
Zhenguo
PS: other tools relying on mysql also show the same problems, such as
mafFrags. However, hgsql works. I have no idea why.