如何返回复制服务器状态?
尝试获取从属状态时没有返回任何内容?!
mysql: 5.1.63-0
代码
$result = Mysql::result("SHOW SLAVE STATUS");
$status = $result->fetch_assoc();
echo '<pre>';
echo 'result: ';
print_r($result);
echo 'status: ';
print_r($status);
echo '</pre>';
返回
result: mysqli_result Object
(
[current_field] => 0
[field_count] => 38
[lengths] =>
[num_rows] => 0
[type] => 0
)
status: