Hi guys,
I am trying to run OrthoMCL on a remote server. When I get to the orthomclLoadBlast step, I keep getting this error message:
$ orthomclLoadBlast orthomcl.config similarSequences.txt
DBI connect('max_orthomcl','max',...) failed: Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
I have been searching for a while, and it appears that the socket declaration should be in the my.cnf file. However socket is not specified in my.cnf file for me, and I cannot edit this file as part of the rules of using this server. Anyone know a way to fix this?
Not sure if this helps but here is the socket information if i do this in mysql:
$mysql
MariaDB [(none)]> show variables like 'socket';
+---------------+----------------------------+
| Variable_name | Value |
+---------------+----------------------------+
| socket | /data/mariadb/mariadb.sock |
+---------------+----------------------------+
1 row in set (0.00 sec)
Any input is greatly appreciated.
are you sure you are using the correct credentials to access this remote SQL server? and set the ports to use correctly ?
I made sure the credentials in the my.cnf file match those in the orthomcl.config (below)
and I can see the database 'max_orthomcl' when I go into mysql
can you please let me know how i can check if ports are set up?
Are you running this on a compute cluster or such? If so , can you also check if you can actually access the MySQL server from the machine where you try to run OrthoMCL ?
Yes it is a compute cluster. I am trying to run both orthoMCL and MySQL from it. If I try to access mysql server using 'mysql' it appears to be working fine
is there any other test I should try?
yes, try to connect to the specific orthomcl DB from the cluster, something like following:
in other words, try to connect to the required DB from the commandline using the credentials from your config file
Thanks. I tried this and I got :
voila there you have your answer: the 'max' account has no access to the mysql DB.
create an account on that server with the correct rights and then it should work. Alternatively try to use an account called orthomcl (it might be that that is the default one that is being created by orthomcl itself).
is your mysql server really called 'host' ?
I will contact the cluster administrators then, thank you for the help! No that is not the actual host name (Just put that to show the command/arguments that were run).
It's actually working now (I can access that specific DB from the cluster). apparently if you remove the space between -p and your password it works fine.
any other ideas what could be causing the issue? I still get the same error when I try to run orthomclLoadBlast
Hmm, running out of ideas here.
perhaps this post can help you further: http://seqanswers.com/forums/archive/index.php/t-31112.html ? (start from the bottom)