// -------------------------------------------------------------\r
function dbClass()\r
{\r
- $this->Provider="localhost";\r
+ $this->Provider="127.0.0.1";\r
$this->debug=false;\r
$this->ConnTimeout=30; // seconds\r
$this->LockTimeout=5000; // milliseconds\r
$this->Dialect="MySQL";\r
$this->dbDefault = $DefDB;\r
$this->dbMain = mysql_connect($this->Provider,$userid,$pw);\r
- mysql_select_db($DefDB,$this->dbMain);\r
$this->db =& new dbClass_mysql($this->dbMain);\r
- if ($this->CheckForError("opening connection")) return false;\r
+ if ($this->CheckForError("opening connection to " . $this->Provider)) return false;\r
+ mysql_select_db($DefDB,$this->dbMain);\r
+ if ($this->CheckForError("selecting database " . $DefDB)) return false;\r
return true;\r
}\r
\r