X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/e0e275daf3624e7c6bfce0eb27717d14572273ce..2d8807f81f0af8e4c1d842d10daa946672d7fd0f:/sistema/local_lib/intranetdb.php diff --git a/sistema/local_lib/intranetdb.php b/sistema/local_lib/intranetdb.php index 02c08e4..2031624 100644 --- a/sistema/local_lib/intranetdb.php +++ b/sistema/local_lib/intranetdb.php @@ -41,7 +41,7 @@ class IntranetDB extends DB { function connect() { $config = @parse_ini_file(dirname(__FILE__).'/../conf/db.ini'); - $dsn = @$config['dsn'] ? $config['dsn'] : 'mysql://intranet:c35b9aa6b0758@unix(/var/run/mysqld/mysql.sock)/intranet'; + $dsn = @$config['dsn'] ? $config['dsn'] : 'mysql://intranet:c35b9aa6b0758@localhost/intranet'; $db = DB::connect($dsn, isset($config['persistent']) ? $config['persistent'] : true); if (DB::isError($db)) { trigger_error($db->getMessage(), E_USER_ERROR);