Package: ocsinventory-server
Version: 1.01-6
Severity: normal
Tags: patch

Hi!

We have installed ocs with the database in another server, and we were
getting this message when trying to connect, and also after logout:

    ERROR: MySql connection problem
    Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (2)

Searching a little we found: 
http://forums.ocsinventory-ng.org/viewtopic.php?id=1552

Patch:

--- /usr/share/ocsinventory-server/ocsreports/preferences.php.old       
2009-01-26 15:39:11.000000000 -0200
+++ /usr/share/ocsinventory-server/ocsreports/preferences.php   2009-01-26 
14:58:40.000000000 -0200
@@ -11,6 +11,7 @@
 //Modified on $Date: 2007/02/16 16:39:13 $$Author: plemmet $($Revision: 1.25 $)
 
 error_reporting(E_ALL & ~E_NOTICE);
+require("dbconfig.inc.php");
 @session_start();
 
 define("UTF8_DEGREE", 1 );                             // 0 For non utf8 
database, 1 for utf8



It would be good to have it applied on the Debian package.

Thank you!

Best regards,
Nelson

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.1-naoliv1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to