MySQL是一款開源關(guān)系型數(shù)據(jù)庫管理系統(tǒng)。在實際開發(fā)中,我們可能需要退出MySQL。那么,如何退出MySQL呢?下面,我們來探討一下。
? ~ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 8.0.21 Homebrew Copyright (c) 2000, 2020, Oracle and/or its affiliates. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> exit Bye ? ~
如上所示,我們首先需要使用MySQL命令行客戶端登錄MySQL,然后輸入exit命令退出MySQL即可。