could not find gem 'mysql2_升级Rails3.0后出现这样的问题。Could not find gem 'mysql2 ....

Could not find gem 'mysql2 <>=0, runtime>' in any of the gem sources. Try running 'bundle install'.

看了下数据库的配置文件:这里adapter: mysql2

development:

adapter: mysql2

encoding: utf8

reconnect: false

database: xxxxx_development

pool: 5

username: root

password: admin

host: localhost

于是按照提示的错误,在script目录下执行了下面的命令行:

script>bundle install

安装了下面的东西,问题解决:

Fetching source index for http://rubygems.org/

Using rake (0.8.7)

Using abstract (1.0.0)

Using activesupport (3.0.2)

Using builder (2.1.2)

Using i18n (0.4.2)

Using activemodel (3.0.2)

Using erubis (2.6.6)

Using rack (1.2.1)

Using rack-mount (0.6.13)

Using rack-test (0.5.6)

Using tzinfo (0.3.23)

Using actionpack (3.0.2)

Using mime-types (1.16)

Using polyglot (0.3.1)

Using treetop (1.4.9)

Using mail (2.2.9.1)

Using actionmailer (3.0.2)

Using arel (2.0.2)

Using activerecord (3.0.2)

Using activeresource (3.0.2)

Using bundler (1.0.5)

Installing mysql2 (0.2.6)

Using thor (0.14.4)

Using railties (3.0.2)

Using rails (3.0.2)

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem

is installed.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值