Help us understand the problem. What is going on with this article?

Bash on Ubuntu on Windows で MySQL のインストールに失敗した時のメモ

手順

##### インストール #####
sudo dpkg -i mysql-apt-config_0.8.6-1_all.deb
# MySQL Server と mysql-5.7 を選択
sudo apt update && upgrade
sudo apt install mysql-server
# root password 入力
##### エラー発生 #####
mysql -u root -p
Enter password:****
ERROR 2002 (HY000): Can't connect to local
MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

##### 対処手順 #####
cd /var/run/
sudo mkdir mysqld
sudo touch mysqld.sock

##### エラー #####
mysql -u root -p
Enter password:****
ERROR 2002 (HY000): Can't connect to local
MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away