The way to do it with most SHOW statements would be “SHOW SLAVE STATUS LIKE 'Last_Error';” — but MySQL “SHOW SLAVE STATUS” does not support the LIKE clause.
See here: http://dev.mysql.com…ve-status.html. The syntax is just listed as
Compare http://dev.mysql.com…ow-status.html. Here the syntax is listed as
Code:
SHOW [GLOBAL | SESSION] STATUS
[LIKE 'pattern' | WHERE expr]
This is a request for MySQL and not for us.
EDIT: to do this it should rather be a WHERE (and not LIKE) option. LIKE will filter rows in the output, WHERE will filter columns. But as per Vishal's comment below I don't think that MySQL will improve SHOW anymore. They will likely put their effort into improving Information_Schema and Performance_Schema databases instead.