LoginSignup
1
0

More than 1 year has passed since last update.

ERROR 2002 (HY000) 今日のdocker error<エンジニア夏休み企画>【個人開発】

Last updated at Posted at 2022-09-06

個人開発

個人開発って、なにかエラーで止まったままってすごくある。 
そこでうん十年前から始めたのがエラー報告。 
ソフトは作れなくても、どこで、どういうエラーで止まったか。 

10回に1回くらいは回避できたりすると、それはとても役立ててもらえる。 
一番、役に立ったのは自分自身。 

同じ間違いを何度も繰り返す性格。 
検索すると、自分の報告に当たる。  

Ubuntu

ExmentをUbuntu20.0.4 サーバにインストールする手順

の追試をしようとして、2つのエラーで止まった。

dockerのubuntu

sudoが入ってない。rootのパスワード周りの設定がpcに直接ubuntu入れた時と違うことを思い出した。

一つ目は、

InRelease 今日のdocker error<エンジニア夏休み企画>【個人開発】

そして、2つ目は次。

bash
# apt update; apt -y upgrade
# apt install mariadb-server sudo vim
# sudo mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter current password for root (enter for none): 

enterキーを押しても、同じプロンプトを表示するだけ。
じゃ、パスワード設定すればいい?

bash
# passwd
New password: 
Retype new password: 
# sudo mysql_secure_installation

設定したの入れてもだめでした。

bash
# sudo passwd
New password: 
Retype new password: 
passwd: password updated successfully
# sudo mysql_secure_installation

同じく駄目でした。

1
0
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
1
0