gpt4 book ai didi

RubyRep 安装程序导致错误 "Exception caught: Mysql::Error: query: not connected: SHOW TABLES"

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:57:12 24 4
gpt4 key购买 nike

我花了一整天的时间试图让 RubyRep 运行起来,现在我陷入了错误“Exception caught: Mysql::Error: query: not connected: SHOW TABLES”我找不到太多的洞察力。在这一点上,我首先尝试让 RubyRep 在两个本地数据库上运行(以消除潜在的权限问题),但仍然没有成功。我当前的 RubyRep 配置是:

RR::Initializer::run do |config|
config.left = {
:adapter => 'mysql',
:database => 'main_logger',
:username => 'root',
:password => 'password',
:host => 'localhost'
}

config.right = {
:adapter => 'mysql',
:database => 'test',
:username => 'root',
:password => 'password',
:host => 'localhost'
}

config.include_tables 'app_logs'
# config.include_tables /^e/ # regexp matching all tables starting with e
# config.include_tables /./ # regexp matching all tables in the database
end

使用此配置,如果我运行 # ruby​​rep scan -c ruby​​rep.conf 我得到:

DEPRECATION WARNING: In the next release, this will return the same as connection_pool_list. (An array of pools, rather than a hash mapping specs to pools.). (called from connection_pools at /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:500)
DEPRECATION WARNING: In the next release, this will return the same as #connection_pool_list. (An array of pools, rather than a hash mapping specs to pools.). (called from connection_pools at /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:500)
Exception caught: Mysql::Error: query: not connected: SHOW TABLES

非常感谢对此的任何想法和建议。

凯特

最佳答案

凯特。

我遇到了相同的错误消息,但针对的是 Postgres。花点时间找到了这个漂亮的指南: RubyRep Installation by wildcardcorp .

我在那里找到了“rubyforge”的损坏源链接,这是替代源链接:http://mirror.as24220.net/pub/rubygems/files/rubyrep/rubyrep-1.2.0.zip

其他事情对我来说很好。希望对您有所帮助。

关于RubyRep 安装程序导致错误 "Exception caught: Mysql::Error: query: not connected: SHOW TABLES",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24739457/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com