开发者

php show slave status

im not to sure why im getting a Warning: m开发者_运维知识库ysql_fetch_array(): when running this query

$query="SHOW SLAVE STATUS;";
$result = mysql_db_query("aid", $query, $con); 


well i use my_db_query because im new to php and thats all i really know well here is the full error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/admin/domains/ismfast.com/public_html/V3/internal/karl_tools/slave_email.php on line 23

    $query="SHOW SLAVE STATUS;";


$result = mysql_db_query("aid", $query, $con); echo $result;
$r = mysql_fetch_array($result);
if($r['Slave_SQL_Running']=="Yes"){echo $r['Exec_Master_Log_Pos']}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜