无法使用 mysqljdbc 驱动程序在 Torquebox 上启动 JRuby Rails 3.0.10 应用程序

发布于 2024-12-08 10:30:47 字数 471 浏览 3 评论 0原文

在作为 gem 安装的 Torquebox 服务器上部署 Rails 3.0.10 应用程序时,我收到如下所示的错误消息。开发和生产模式上都有同样的错误。但是,如果我运行命令“rails server -b 127.0.0.1 -p 3000 -edevelopment”,它在没有 Torquebox 的情况下工作正常。不太确定 Torquebox 服务器特有的东西。

ActiveRecord::ConnectionNotEstablished:没有可用连接:SET SQL_AUTO_IS_NULL=0

设置

database.yml已

开发:

适配器:jdbcmysql 用户名:根 密码:123 主机:本地主机 数据库:gidm_dev

Gemfile 有

gem 'activerecord-jdbc-adapter' gem 'activerecord-jdbcmysql-adapter'

I 'm getting error message shown below on deploying rails 3.0.10 app on Torquebox server installed as a gem. Same error on both development and production modes. However, it works fine without Torquebox if i run a command "rails server -b 127.0.0.1 -p 3000 -e development". Not so sure something specific to Torquebox server.

ActiveRecord::ConnectionNotEstablished: no connection available: SET SQL_AUTO_IS_NULL=0

Settings

database.yml has

development:

adapter: jdbcmysql
username: root
password: 123
host: localhost
database: gidm_dev

Gemfile has

gem 'activerecord-jdbc-adapter'
gem 'activerecord-jdbcmysql-adapter'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

山色无中 2024-12-15 10:30:47

如果没有更多信息,很难确定问题所在。您愿意加入我们的 IRC (#torquebox on freenode) 以便我们与您一起解决这个问题吗?如果 IRC 不适合您,您可以向 TorqueBox 用户列表发送一封电子邮件,其中包含 torquebox run 的完整日志输出以及您的 Rails 日志吗?

有关 IRC 频道和邮件列表的更多信息,请访问 http://torquebox.org/community/

It's hard to determine the issue without more information. Would you be willing to join us on IRC (#torquebox on freenode) so we can work with you to figure it out? If IRC doesn't work for you, can you send an email to the TorqueBox user's list with the full log output from torquebox run along with your rails log?

More information about the IRC channel and mailing list can be found at http://torquebox.org/community/.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文