Problem finding mysql socket

Message boards : Server programs : Problem finding mysql socket
Message board moderation

To post messages, you must log in.

AuthorMessage
Maia

Send message
Joined: 1 Jul 14
Posts: 2
United States
Message 54675 - Posted: 1 Jul 2014, 18:05:56 UTC
Last modified: 1 Jul 2014, 18:34:32 UTC

Hi. I've been trying to run update_versions, but I can't connect to the mysql database because boinc is looking in the wrong directory for the socket. (It's looking for unix:///var/mysql/mysql.sock, while mysql puts the socket in /tmp/mysql.sock. How do I set it so that boinc looks in the correct directory? Thanks.
-Maia

EDIT: I have added
[client]
socket=/tmp/mysql.sock

to the my.cnf file, but boinc is still not able to connect to mysql
ID: 54675 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 54695 - Posted: 2 Jul 2014, 13:58:23 UTC

update_versions is a PHP script which uses php's builtin mysql_* and/or mysqli_* functions. So BOINC by itself is not interested in the location of the socket. Can you provide the whole commandline and error message?
ID: 54695 · Report as offensive
Maia

Send message
Joined: 1 Jul 14
Posts: 2
United States
Message 54725 - Posted: 3 Jul 2014, 16:54:23 UTC - in response to Message 54695.  

Never mind, I fixed it by adding the line
[client]
socket=/tmp/mysql.sock

in the php.ini file
ID: 54725 · Report as offensive

Message boards : Server programs : Problem finding mysql socket

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.