My Koha instance is displaying the following error: Software error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/koha/lib/C4/Context.pm line 802. BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 68. Compilation failed in require at /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 23. BEGIN failed--compilation aborted at /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 23. I am guessing this has to do with my MySQL setup, not Koha. Can anyone confirm that? I assume I will need to use SSH to connect to MySQL and dump the database, but I am not sure where to go from there. Can anyone give any pointers for how to recover? Daniel
Daniel Owens schreef op vr 16-01-2015 om 08:27 [+0700]:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/koha/lib/C4/Context.pm line 802.
This implies that the mysql server isn't running. On Debian or Ubuntu systems (possibly others too), this should help: sudo service mysql restart -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
On 1/16/15 8:31 AM, Robin Sheat wrote:
Daniel Owens schreef op vr 16-01-2015 om 08:27 [+0700]:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/koha/lib/C4/Context.pm line 802. This implies that the mysql server isn't running. On Debian or Ubuntu systems (possibly others too), this should help:
sudo service mysql restart
Robin, Your response led me to check to see if mysql is running, and it is not running at all. I will have to troubleshoot that. Thanks. Daniel
participants (2)
-
Daniel Owens -
Robin Sheat