Message boards : Server programs : Problem finding mysql socket
Message board moderation
Author | Message |
---|---|
Send message Joined: 1 Jul 14 Posts: 2 |
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 |
Send message Joined: 4 Jul 12 Posts: 321 |
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? |
Send message Joined: 1 Jul 14 Posts: 2 |
Never mind, I fixed it by adding the line [client] socket=/tmp/mysql.sock in the php.ini file |
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.