To exit the MySQL command prompt, type the following at the MySQL command prompt followed by pressing the Return key:
exitNote:
The semicolon is not used at the end of this command.
exitThe semicolon is not used at the end of this command.