Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

how do I return the results of show slave status in mysqldatareader? (1 reply)

$
0
0
Hi there,

I am trying to return the results of show slave status in a result reader but the reader doesn't get initialized, i tried something like this

// pseudo code
MySqlCommand cmd = new MySqlCommand("show slave status", connection);
MySqlDataReader reader = cmd.ExecuteReader(CommandBehavior.CloseConnection)

if (reader.read()) // here reader is null reference...
{
/// ....
}

thank you,
Ovi

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>