刚刚安装了 Aptana 并使用 MacPorts 更新了 Rails 项目的所有附加功能。当“运行”项目以在浏览器中查看它时,它显示以下错误。
Home$ 脚本/rails 服务器
在任何 gem 源列表中都找不到 gem 'sqlite3-ruby (>= 0, runtime)'
d 在你的 Gemfile 中。
尝试运行bundle install
。
我希望它使用 MySQL 作为默认值 - 我该怎么做?
最佳答案
在你的 gemfile 中:
gem 'mysql2'
在数据库.yml中:
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: your_site_development
pool: 5
username: root
password: password
socket: /tmp/mysql.sock
关于mysql - Aptana - 如何将默认值从 sqlite3 更改为使用 MySql?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4608878/