Mysql::Error: query: not connected: SHOW TABLES

57 views
Skip to first unread message

Toilem Godwin

unread,
Dec 3, 2014, 7:24:29 AM12/3/14
to rub...@googlegroups.com
getting this error for a while now.

[root@me rubyrep-1.2.0]# rubyrep  scan -c redmine.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.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:500)
/usr/local/rvm/gems/ruby-2.1.2/gems/rubyrep-1.2.0/lib/rubyrep/table_spec_resolver.rb:91: warning: encoding option is ignored - U
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.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:500)
Exception caught: Mysql::Error: query: not connected: SHOW TABLES



I have tried switching the databases from right to left and the other way but still getting the same error. Is there a solution to this problem? Kindly help.

redmine.conf
RR::Initializer::run do |config|
  config.left = {
    :adapter  => 'mysql', # or 'mysql'
    :database => 'xxxxx',
    :username => 'xxxxx',
    :password => 'kenic1461',
    :host     => 'xx.xx.xx.2'
  }

  config.right = {
    :adapter  => 'mysql',
    :database => 'xxxxx',
    :username => 'xxxxxx',
    :password => 'xxxxx',
    :host     => 'xx.xx.xx.2'
  }

  #config.include_tables 'dept'
  #config.include_tables /^e/ # regexp matching all tables starting with e
   config.include_tables /./ # regexp matching all tables in the database
   config.options[:auto_key_limit] = 2
end





Message has been deleted

Cristian cruz benel

unread,
Dec 29, 2015, 1:33:48 PM12/29/15
to rubyrep
please somebody respond, i have the same error
Reply all
Reply to author
Forward
0 new messages