1

When I tried to run rails s on remote server I got this issue.

Mysql working fine with "rails db"

4

2 回答 2

1

使用查找您的套接字文件

mysqladmin variables | grep socket

然后将套接字文件添加到您的 database.yml 配置中

development:
  adapter: mysql2
  host: localhost
  username: root
  password: xxxx
  database: xxxx
  socket: <socket location>
于 2013-08-26T16:56:35.963 回答
0

MySQL 登录/通过是否正常并且 mysql 服务器是否正在运行?

于 2013-08-26T16:57:54.907 回答