Welcome Guest, Not a member yet? Register   Sign In
(HY000/1040): Too many connections
#1

A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/1040): Too many connections
Filename: mysqli/mysqli_driver.php

File: /var/www/html/*******/application/controllers/User.php

Line: 19
Function: __construct
Reply
#2

(This post was last modified: 01-19-2019, 09:44 AM by InsiteFX.)

Is pconnect turned on in you database config?
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(01-18-2019, 04:45 AM)InsiteFX Wrote: Id pconnect turned on in you database config?

$active_group = 'default';
$query_builder = TRUE;

$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '*******',
'database' => '******',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
Reply
#4

Then the only other thing that might help is to get the server admin to raise the number of connections.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB