我正在嘗試安裝,mariadb
但安裝因運行時失敗而退出Mysql
,並且無法停止。
MySql 未安裝,但有一個正在運行的進程,我無法殺死
root@sonic-ubuntu ~ # ps aux | grep mysql
root 8639 0.0 0.0 9496 2244 pts/0 S+ 08:55 0:00 grep --color=auto mysql
當我嘗試殺死它時,它會使用不同的 PID 重生,我試圖確定正在使用的進程是什麼,ptree
但它沒有顯示出來。
運行 Ubuntu 15.10
任何幫助表示讚賞。
好吧,如果我嘗試安裝 mariadb,我會得到以下信息
Preparing to unpack .../mariadb-server-10.1_10.1.12+maria-1~wily_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.1_10.1.12+maria-1~wily_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Selecting previously unselected package mariadb-server.
Preparing to unpack .../mariadb-server_10.1.12+maria-1~wily_all.deb ...
Unpacking mariadb-server (10.1.12+maria-1~wily) ...
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server-10.1_10.1.12+maria-1~wily_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
這表明 mysql 正在運行
是的,但我找不到或阻止它!
答案1
的輸出ps aux | grep ...
自然會包含grep
過程本身:
root 8639 0.0 0.0 9496 2244 pts/0 S+ 08:55 0:00 grep --color=auto mysql
相關係統上似乎沒有執行 MySQL 實例。