|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ziff Davis Enterprise Virtual Tradeshows: Hot Topics, Cutting Edge Technology, Real-time Interaction with IT Professionals. Learn more at ziffdavisvts.com
|
|
#1
|
|||
|
|||
|
Help: Restarting MySQL with PHP script
Hi,
I'm having a problem wherein when MySQL hits too many connections my site just hang suntil I manually restart MySQL. I have checked the my.cnf file and my current configuration gives me no way to increase the number of allowed connections. What I need to do is have the script that currently spits the error code and explanation recognise the error, restart MySQL and refresh the page. This way we have no down time and I don't have to keep checking the site. However, I've looked all over and can't find a PHP script that restarts MySQL. Any ideas or help with this is greatly appreciated. |
|
#2
|
|||
|
|||
|
try the cmdExec() function.
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Help: Restarting MySQL with PHP script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|