`
xinlanzero
  • 浏览: 251898 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

RuntimeError (!!! Missing the mysql2 gem. Add it to your Gemfile: gem ‘mysql2′):

    博客分类:
  • Ruby
 
阅读更多

在Rails3 出现这个错误,做以下工作:

1. 在Gemfile

gem 'mysql2', '~> 0.2.6'

2.

 bundle update

3. 在datababse.yml

development:
  adapter: mysql2
  encoding: utf8
  database: devise
  # pool: 5
  username: root
  password:
  reconnect: true
  socket: /tmp/mysql.sock

参考: http://stackoverflow.com/questions/4297253/install-mysql2-gem-on-snow-leopard-for-rails-3-with-rvm

If you enjoyed this post, make sure you subscribe to my RSS feed!

分享到:
评论

相关推荐

    加载桌面提示 C++Runtime Library

    Program:c:\windows\exploorer.exe This application has requested the Runtime to terminate it in an unusual way.” - 这个错误提示表明了在启动`explorer.exe`时,程序遇到了非正常的终止请求,这通常是由于...

    .Net/C#连接Mysql数据库Connector/Net MySql.Data.dll 8.20.0+6.9.12

    MySQL Connector/Net ...在项目中引用组件:MySql.Data.dll (记得复制到本地中选择为true / 或直接把MySql.Data.dll复制到debug文件夹下) 在代码中 using MySql.Data.MySqlClient; ......接下来这里就看你表演了。

    mysql.data.dll(.net 4.0或以前版本)

    MySQL.data.dll是MySQL数据库连接器的一个重要组件,主要用于.NET Framework 2.0、3.0、3.5和4.0版本。这个DLL文件是MySql Connector/NET的一部分,允许开发人员在使用.NET Framework开发的应用程序中与MySQL数据库...

    Playmaker1.7.8.3

    Programmers: Add a powerful visual state machine editor to your toolbox. Interface with scripts or extend Playmaker with Custom Actions. :: NEW Public beta of 1.8.0 Update! :: NEW Unity 5 and WebGL...

    Playmaker v1.8.7.unitypackage

    Programmers: Add a powerful visual state machine editor to your toolbox. Interface with scripts or extend Playmaker with Custom Actions. :: NEW Favorites and Recent Actions. :: NEW Integrated ...

    QTP_00604.EXE 解决QTP10 R6025 Runtime Error

    我装的是QTP10,之前还用的好好的,今天不知道怎么回事,我把QTP关了后再启动就看见 QTP10 R6025 Runtime Error,我上网查了相关文章也没能解决,看论坛上也有人遇到过,但是没有答案,各位XDJM,帮忙看看哈。...

    Playmaker v1.9.0.p20.zip

    Programmers: Add a powerful visual state machine editor to your toolbox. Interface with scripts or extend Playmaker with Custom Actions. :: NEW Nested Prefab support in 2018.3+ :: NEW Integrated UI...

    Playmaker v1.8.6.unitypackage下载

    Programmers: Add a powerful visual state machine editor to your toolbox. Interface with scripts or extend Playmaker with Custom Actions. :: NEW Favorites and Recent Actions. :: NEW Integrated ...

    Springer.The.Developer’s.Guide.to.Debugging.2008.pdf

    4.4 Example 2: Broken Calls to Memory Allocation/Deallocation . . 38 4.5 Combining Memory and Source Code Debuggers . . . . . . 40 4.6 Cutting Down the Noise – Suppressing Errors . . . . . . . 40 4.7...

    Playmaker 1.8.5.unitypackage下载

    Programmers: Add a powerful visual state machine editor to your toolbox. Interface with scripts or extend Playmaker with Custom Actions. :: NEW Favorites and Recent Actions. :: NEW Integrated ...

    Playmaker 1.8.5. 下载

    Programmers: Add a powerful visual state machine editor to your toolbox. Interface with scripts or extend Playmaker with Custom Actions. :: NEW Favorites and Recent Actions. :: NEW Integrated ...

    Playmaker 1.9.0.p4.unitypackage 下载 不用代码制作游戏,支持unity3d 2018

    Programmers: Add a powerful visual state machine editor to your toolbox. Interface with scripts or extend Playmaker with Custom Actions. :: NEW Integrated UI Actions and Events. :: NEW Auto-Convert...

    RuntimeError: DataLoader worker (pid(s) 9528, 8320) exited unexpectedly

    RuntimeError: DataLoader worker (pid(s) 9528, 8320) exited unexpectedly 去网上搜教程,说是在loader定义的时候多进程的参数指定的问题,我的loader定义如下 loader = Data.DataLoader( dataset=torch_dataset,...

    mysql.data.dll-6.9.8 包含.net 2.0 4.0 4.5

    MySQL.Data.dll 是 MySQL 数据库与 .NET 应用程序交互的核心组件,主要负责提供 ADO.NET 接口,使得 .NET 开发者可以方便地在 C#、VB.NET 等语言中操作 MySQL 数据库。版本 6.9.8 意味着这是一个更新的版本,可能...

    Playmaker 官方最新1.9.0 p4

    Programmers: Add a powerful visual state machine editor to your toolbox. Interface with scripts or extend Playmaker with Custom Actio ns. :: NEW Integrated UI Actions and Events. :: NEW Auto-Convert ...

    Tensorflow 2.1 报错整合

    文章目录Tensorflow 2.1 报错整合RuntimeError: `loss` passed to Optimizer.compute_gradients should be a function when eager execution is enabled.RuntimeError: Attempting to capture an EagerTensor ...

    解决pycharm导入numpy包的和使用时报错:RuntimeError: The current Numpy installation (‘D:\\python3.6\\lib\\site-packa的问题

    标题用pycharm导入numpy包的和使用时报错:RuntimeError: The current Numpy installation (‘D:\python3.6\lib\site-packages\numpy\init.py 1.file→settings→project interpreter→+(建议用pychon3.6版本,我...

    go学习笔记 下卷

    #### 2. Go程序的基本结构与构建流程 - **基本结构**:Go 程序通常由一个或多个包组成,每个包包含若干个源代码文件。其中,`main` 包是程序执行的入口。 - **构建流程**: - 使用 `go build -o test` 命令来构建...

    CommonsWare.The.Busy.Coders.Guide.to.Android.Development.Version.8.2.2017

    Along the way, it covers how to embed the WebKit Web browser in your application, how to have your application use data from other installed applications (and vice versa!) or off the Internet, and ...

Global site tag (gtag.js) - Google Analytics