|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Showing Mysql status
Hi everyone,
Sometimes i get trouble with mysqld cause it stops. I wanted to print it in a little php script with using bash script commands. Here is the code: ********************************************** <? $mysqld = system("service mysqld status"); ?> *********************************************** I want to develop this script cause it print a message like this: ********************************** mysqld (pid 2269) is running... ********************************** It looks too basic for me. I want it to write a message like this: Mysqld is ok or Mysqld is stopped How can i make this? Can anyone show the way please? Have a nice day!!! |
|
#2
|
|||
|
|||
|
RE: Showing Mysql status
What does "service mysqld status" display if MySQL isn't running?
|
|
#3
|
|||
|
|||
|
RE: Showing Mysql status
When mysql stopped it gives the error message as
"mysqld is stopped" |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Showing Mysql status |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|