Skip to main content
Culture is Life

Main navigation

  • Home
  • Technical
  • About
  • Contact
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Technical

[Linux] 無法停止 MySQL / MariaDB

By gloomcheng, Sat, 02/04/2023 - 19:39

在進行 Debian 作業系統升級時,由於 MariaDB 鎖定在 10.1 的版本,然後升級過程又安裝了 10.5 的版本,造成衝突。於是,原本是要將 sudo apt purge mariadb-server-10.1 移除,但在移除過程中因為 Stopping MariaDB database server: mysqld failed! 卡住而無法順利移除。

一般的解決方法是 sudo service mysql stop 就可以了,但如果你也遇到用盡大部分的方法都無法停止 mysql 服務的情況,可以改用以下的指令:

$ sudo mysqladmin -u root -p shutdown

Ref: Ubuntu can't stop mysqld

Categories

  • Linux
  • Debian
  • MySQL
  • MariaDB

Comments

About text formats

Plain text

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
RSS feed
Powered by Drupal