2
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

mysqlのsocketの位置を確認する

ソケットが見つからなくてよく出るエラー

Mysql2::Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

まずは、ソケットの位置が合っているのか確認したいですね。

mysql_config --socket

・結果

/var/lib/mysql/mysql.sock

指定された位置に読み込み先を設定しましょう

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
Sign upLogin
2
Help us understand the problem. What are the problem?