Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
When I tried to run rails s on remote server I got this issue.
Mysql working fine with "rails db"
使用查找您的套接字文件
mysqladmin variables | grep socket
然后将套接字文件添加到您的 database.yml 配置中
development: adapter: mysql2 host: localhost username: root password: xxxx database: xxxx socket: <socket location>
MySQL 登录/通过是否正常并且 mysql 服务器是否正在运行?