LoginSignup
44
30

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
44
30
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
44
30