Welcome Guest, Not a member yet? Register   Sign In
Error max connection database
#1

Hi
I have error already has more than 'max_user_connections' active connections codeigniter in my project
Do i have to upgrade my host or my programming is mistake?
I use Restful and use limitation for controller with database also use api key with database
Can they affect on database connections?
Thanks
Reply
#2

@omid_student,

What are your CI database connection settings? This is probably not a programming mistake. It is probably more of a database setting. Hopefully more on your end instead of the host's end.
Reply
#3

If you are opening the database try closing the connection afterwards.
What did you Try? What did you Get? What did you Expect?

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

(08-21-2019, 07:26 AM)php_rocs Wrote: @omid_student,

What are your CI database connection settings? This is probably not a programming mistake.  It is probably more of a database setting.  Hopefully more on your end instead of the host's end.

My database setting is OK
We understood one body try to execute special api that it was very unsecured
Thanks
Reply
#5

(08-21-2019, 08:01 AM)InsiteFX Wrote: If you are opening the database try closing the connection afterwards.

As far as i know Codeigniter auto close database connection,Isn't it?
Reply
#6

(08-21-2019, 11:34 AM)omid_student Wrote:
(08-21-2019, 08:01 AM)InsiteFX Wrote: If you are opening the database try closing the connection afterwards.

As far as i know Codeigniter auto close database connection,Isn't it?

Yes, when script execution ends PHP will close the database connection.
Reply
#7

Thanks, I know that it will close it, I was not sure if he was using a custom
database access.
What did you Try? What did you Get? What did you Expect?

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

Thanks guys,problem is host or my code
On of my function is send sms to user
I think this function take 3 second for send it
Can it affect on cpu?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB