46
32

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ubuntu環境でのMySQLアンインストールについて

Posted at

#Ubuntu環境でのMySQLアンインストールについて
突如以下のエラーでmysqlにログインできなくなってしまった。
色々と試したが結果ダメだったので、特にデータもなかったので、アンインストールを決意。

root@ip-10-0-0-31:/var/run/mysqld# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)

###Ubuntu環境で完全にアンインストールする方法

以下のコマンドを順に実行する。

sudo apt-get remove --purge mysql-server* mysql-common
sudo apt-get autoremove --purge
sudo rm -r /etc/mysql
sudo rm -r /var/lib/mysql
46
32
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
46
32

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?