diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-20 17:59:04 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-20 17:59:04 +0000 |
commit | d259db5910a6f1825fa6c82e19e5f0694449209c (patch) | |
tree | 17400ef256a15ab5b356cbf04c4c512d1802b5fc /engine/lib | |
parent | a8e683a994cac6d30225bf90b608a60fe8fa696f (diff) | |
download | elgg-d259db5910a6f1825fa6c82e19e5f0694449209c.tar.gz elgg-d259db5910a6f1825fa6c82e19e5f0694449209c.tar.bz2 |
Apparently non-p connections are better in many cases, see http://www.slideshare.net/techdude/how-to-kill-mysql-performance
git-svn-id: https://code.elgg.org/elgg/trunk@2101 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/database.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php index 53cacdb05..a071a4f6f 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -49,7 +49,7 @@ }
// Connect to database
- if (!$dblink[$dblinkname] = mysql_pconnect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))
+ if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))
throw new DatabaseException(sprintf(elgg_echo('DatabaseException:WrongCredentials'), $CONFIG->dbuser, $CONFIG->dbhost, $CONFIG->debug ? $CONFIG->dbpass : "****"));
if (!mysql_select_db($CONFIG->dbname, $dblink[$dblinkname]))
throw new DatabaseException(sprintf(elgg_echo('DatabaseException:NoConnect'), $CONFIG->dbname));
|