mysql5.7基礎 關閉mysql服務

來源:互聯網
上載者:User

標籤:基礎   mysql5.7   mysql   

鎮場文:
       學儒家經世致用,行佛家普度眾生,修道家全生保真,悟易理象數通變。以科技光耀善法,成就一良心部落格。
______________________________________________________________________________________________________

Operating System:UbuntuKylin 16.04 LTS 64bit
mysql: Ver 14.14 Distrib 5.7.17, for Linux (x86_64) using  EditLine wrapper


查看mysql當前的服務狀態:

[email protected]:~$ service mysql status
● mysql.service - MySQL Community Server   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en   Active: active (running) since 一 2017-03-06 07:17:07 CST; 28min ago  Process: 1200 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=ex  Process: 1196 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exit Main PID: 1199 (mysqld)   CGroup: /system.slice/mysql.service           └─1199 /usr/sbin/mysqld3月 06 07:16:58 xjPC systemd[1]: Starting MySQL Community Server...3月 06 07:17:07 xjPC systemd[1]: Started MySQL Community Server.


關閉mysql的服務:

    code:

[email protected]:~$ service mysql stop    #出現密碼輸入對話方塊 需要輸入ubuntukylin的使用者root的密碼

    

查看mysql當前的服務狀態:

[email protected]:~$ service mysql status
● mysql.service - MySQL Community Server   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en   Active: inactive (dead) since 一 2017-03-06 07:46:15 CST; 3s ago  Process: 1200 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=ex  Process: 1199 ExecStart=/usr/sbin/mysqld (code=exited, status=0/SUCCESS)  Process: 1196 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exit Main PID: 1199 (code=exited, status=0/SUCCESS)3月 06 07:16:58 xjPC systemd[1]: Starting MySQL Community Server...3月 06 07:17:07 xjPC systemd[1]: Started MySQL Community Server.3月 06 07:46:13 xjPC systemd[1]: Stopping MySQL Community Server...3月 06 07:46:15 xjPC systemd[1]: Stopped MySQL Community Server.[email protected]:~$


______________________________________________________________________________________________________
若是您覺得此博文有可以改進的地方,請評論,我會仔細思考的。
註:此博文僅用於科研學習,如果侵犯到您的權益,請及時告知,我會做出相應的處理。




本文出自 “心靜如水,志剛如磐.” 部落格,請務必保留此出處http://xinjingzhigang.blog.51cto.com/12262830/1904191

mysql5.7基礎 關閉mysql服務

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.