Sequel Pro(シークエル・プロ)というアプリケーションを使って、データベースを作成したいのですがこのようなエラーが出てしまいます。。
Sequel Pro➡︎
『ソケット接続が失敗しました!
ソケット経由で接続できなかったか、リクエストがタイムアウトしました。
ソケットのパスが正しく必要な権限のあること、あわせてサーバが起動していることを確認してください。』
MySQL の応答: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ターミナル➡︎
aberyuuryoku-no-MacBook-Air:butelr ryuki$ rake db:create
#<Mysql2::Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)>
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "pool"=>5, "username"=>"root", "password"=>nil, "host"=>"localhost", "database"=>"butelr_development"}, {:charset=>"utf8", :collation=>"utf8_unicode_ci"}
(If you set the charset manually, make sure you have a matching collation)
#<Mysql2::Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)>
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "pool"=>5, "username"=>"root", "password"=>nil, "host"=>"localhost", "database"=>"butelr_test"}, {:charset=>"utf8", :collation=>"utf8_unicode_ci"}
(If you set the charset manually, make sure you have a matching collation)
aberyuuryoku-no-MacBook-Air:butelr ryuki$ cd ~
aberyuuryoku-no-MacBook-Air:~ ryuki$ mysql.server start
Starting MySQL
................................................................................................... ERROR! The server quit without updating PID file (/usr/local/var/mysql/aberyuuryoku-no-MacBook-Air.local.pid).
aberyuuryoku-no-MacBook-Air:~ ryuki$
あなたの回答
tips
プレビュー