The writ must be issued in all cases where there is not a plain, speedy, and adequate remedy, in the ordinary course of law. It must be issued upon the verified petition of the party beneficially interested.

(Amended by Stats. 1907, Ch. 244.)