Code: Select all
[Pdo_mysql]
pdo_mysql.default_socket=/nagiosdb/mysql/mysql.sock
[MySQLi]
mysqli.default_socket =/nagiosdb/mysql/mysql.sockCode: Select all
[Pdo_mysql]
pdo_mysql.default_socket=/nagiosdb/mysql/mysql.sock
[MySQLi]
mysqli.default_socket =/nagiosdb/mysql/mysql.sockIt works fine now. This needs to be documented in the Nagios FAQ.scottwilkerson wrote:These errors are from PHP, if you change the socket path you are also going to need to update the /etc/php.ini making th efollowing changes
Code: Select all
[Pdo_mysql] pdo_mysql.default_socket=/nagiosdb/mysql/mysql.sock [MySQLi] mysqli.default_socket =/nagiosdb/mysql/mysql.sock
great!rajasegar wrote:It works fine now. This needs to be documented in the Nagios FAQ.scottwilkerson wrote:These errors are from PHP, if you change the socket path you are also going to need to update the /etc/php.ini making th efollowing changes
Code: Select all
[Pdo_mysql] pdo_mysql.default_socket=/nagiosdb/mysql/mysql.sock [MySQLi] mysqli.default_socket =/nagiosdb/mysql/mysql.sock
I also saw a section called [MySQL] in php.ini. Updated the default socket on it also.
Thanks for your help.