請問如何使用php重新啟動mysql - BBS

Table of Contents

※ 引述《yamo1 (一個人的生活￾N)》之銘言:
: 由於我的mysql會當掉...
: 每次當掉就會跑到一個php的錯誤網頁
: 就想用php的語法來讓mysql從新起來
: 平常登入root後 用
: sh /usr/local/etc/rc.d/mysql-server.sh stop
: sh /usr/local/etc/rc.d/mysql-server.sh start
: 請問一下 怎麼樣用php來做這些動作呢???
: 謝謝

try "exec"

--
telnet 140.112.250.6 歡迎光臨 ~~暗黑帝國~~
倒站中!!!

--

All Comments