Stop MySQL (
Figure 2.19).
Type the following at the prompt and press Return:
./bin/mysqladmin -u root shutdown
The
mysqladmin utility can be used for many things, including stopping a running server. The
-u root argument says that
mysqladmin should perform the commandshutdownas the MySQL
root user.
If you have already created a
root userpassword, you'll need to add the
-p flag, so that it prompts you for that password. In such a case, the full command would be:
./bin/mysqladmin -u root -p shutdown
Keep in mind that the MySQL
root user is an entirely separate entity than your operating system users.