Should $new_link be used in mysql_connect()?
Posted
by Eddie
on Stack Overflow
See other posts from Stack Overflow
or by Eddie
Published on 2010-04-02T20:06:02Z
Indexed on
2010/04/02
20:13 UTC
Read the original article
Hit count: 215
I'm maintaining an inherited site built on Drupal. We are currently experiencing "too many connections" to the database.
In the /includes/database.mysql.inc file, @mysql_connect($url['host'], $url['user'], $url['pass'], TRUE, 2)
(mysql_connect() documentation) is used to connect to the database.
Should $new_link = TRUE
be used? My understanding is that it will "always open a new link." Could this be causing the "too many connections"?
© Stack Overflow or respective owner