mysql "too many connections" error

If you are hosting on a shared server (as I am) and are getting the "too many connections" mysql error (which I am), then do the following.

Open includes/ez_sql_mysql.php and change the following on line 99:

 

else if ( ! $this->dbh = @mysql_pconnect($dbhost,$dbuser,$dbpassword,true) )

to

else if ( ! $this->dbh = @mysql_connect($dbhost,$dbuser,$dbpassword,true) )


It seems that persistant connections are maxing out the allowed number of connections on my shared server.  I'm adding the option into the final release to enable persistant connections or not with the default being not.

Any comments on this move?