开发者

php show slave status

开发者 https://www.devze.com 2023-01-18 12:14 出处:网络
im not to sure why im getting a Warning: m开发者_运维知识库ysql_fetch_array(): when running this query

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

精彩评论

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

关注公众号