烏班圖18.04解除安裝mysql。
報錯 can』t connect to local mysql server through socket 『/var/run/mysqld/mysqld.sock』
準備解除安裝了重新裝
試了半天
先關閉
sudo service mysql stop
然後刪除相關依賴
sudo rm
/var
/lib/mysql/
-rsudo rm
/etc/mysql/
-rsudo apt-get autoremove mysql*
--purge
sudo apt-get install mysql-server mysql-common
檢視mysql 當前依賴
sudo netstat -tap | grep mysql
如果沒有返回內容說明解除安裝成功。
還不行的話就find / -name 『mysql』 ,把所有mysql的檔案全刪了。
然後把my.cnf 也刪了,再重試上面的
修改密碼
我發現直接update user表是不起作用的,plugin 是 auth_socket ,需要用下面這句修改:
alter user 'root'@'localhost' identified with mysql_native_password by 'lxlxlx'
;
ubuntu18 04解除安裝Anaconda3
1 刪除anaconda3資料夾 rm rf anaconda32 刪除環境配置 1 開啟環境配置檔案 sudo gedit bashrc 2 刪除配置檔案中的路徑 即把以上檔案中的export path home usrname anaconda3 bin path 刪除或者注釋掉,其中usrna...
Ubuntu18 04下解除安裝CUDA11 0
由於深度學習部分 僅支援cuda11.0版本之前的pytorch,pytorch官網也沒有提供與cuda11.0配套的版本,因此決定解除安裝cuda11.0,但是網上也都是11.0版本之前的解除安裝方式,因此按照網上的方法進行解除安裝,由於本人linux作業系統不熟,只能自己嘗試 首先在安裝完cud...
Ubuntu18 04 系統安裝
swap 4096 55g 需要放各種軟體 sudo apt get update sudo apt get install openssh server 無法獲得鎖 var lib dpkg lock open 11 資源暫時不可用 e 無法鎖定管理目錄 var lib dpkg 是否有其他程序正...