0
0

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 1 year has passed since last update.

MySQL起動エラーの対処の仕方【Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38)】

Last updated at Posted at 2023-01-28

エラー内容

mysql -u root -p     
Enter password: 

ERROR 2002 (HY000):
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38)

MySQLに繋がらない!!

解決策

一番多いのがMySQLが起動していないパターン。。
なので一旦起動しましょう。

mysql.server start

Starting MySQL
 SUCCESS! 

再度チャレンジ!!!

mysql -u root -p   
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.32 Homebrew
mysql> 

入れました〜〜!!
はい、解決!終了!!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?