A number of the things you can do with mysqladmin can also be accomplished more directly within the mysql client, which you'll see later in the chapter and in the book. But, in the meantime, another use of mysqladminconfirming the operation of the server by checking its statuswill be demonstrated here. This is a great way to test that MySQL is running, to check that you have the right root userpassword, if necessary, and to confirm the version of MySQL being used.
To demonstrate how most things you do with MySQL, aside from installing, starting, and stopping it, will be essentially the same from one operating system to the next, I'll take images from three different operating systems for these steps. Throughout the rest of the book, you'll also see different operating systems in use, but the functionality and most of the exact commands will be the same regardless of the platform.
To use mysqladmin: