Redirect when mysql_connect show warning

Post Reply
Ricky B
Posts: 78
Joined: Sat Nov 24, 2012 12:39 am

Redirect when mysql_connect show warning

Post by Ricky B »

What could i do is do the following when mysql_connect returns an error on the page to the user?

I ask it because my server overload sometime when i got too much connection in the same time....
it is possible to me to change something in the config.php to redirect the user to another page?

thanks
Ricky B
Posts: 78
Joined: Sat Nov 24, 2012 12:39 am

Re: Redirect when mysql_connect show warning

Post by Ricky B »

for the moment i have removed the line #47 error_reporting(E_ALL & ~E_NOTICE);
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Redirect when mysql_connect show warning

Post by admin »

It won't help.
Did you tune mysql ?
Don't forget to run script update
Ricky B
Posts: 78
Joined: Sat Nov 24, 2012 12:39 am

Re: Redirect when mysql_connect show warning

Post by Ricky B »

I dont think i can use inodb with 20 website and 2 GB ram.... MyISAM its by default?.... and if i have removed the (E_ALL & ~E_NOTICE); its because it don't show the warning on the page and also the path of my root directory to everybody
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Redirect when mysql_connect show warning

Post by admin »

Add memory
I'm sure you have more memory in your desktop then in your server.
Don't forget to run script update
Ricky B
Posts: 78
Joined: Sat Nov 24, 2012 12:39 am

Re: Redirect when mysql_connect show warning

Post by Ricky B »

true i'm planing to upgrade but the budget its not here when you don't see the money back of your investment .... thanks for the answer
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Redirect when mysql_connect show warning

Post by admin »

NP
Don't forget to run script update
Post Reply