Failure in connecting to Mysql database using KOHA
Title
Question
<pre>DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1492. at /usr/share/koha/lib/Koha/Database.pm line 102\r\n</pre>\r\n
\r\nFor help, please send mail to the webmaster (<a href="mailto:[no address given]">[no address given]</a>), giving this error message \r\nand the time and date of the error.
Help me to troubleshoot the above problem
PHP-and-MySQL General
Answers:
There is a connection issue between Koha and your DBMS (MySQL or MariaDB).
Did you install the mariadb-server package?
You should also double check the value in your koha-conf.xml file
(search for "database", "user" and "pass" especifically).
(search for "database", "user" and "pass" especifically).
Login to add comment