RubyRep을 사용하려고 하루 종일 보냈습니다. 이제는 "잡힌 예외 : mysql :: 오류 : 쿼리 : 연결되지 않음 : 표시 테이블 "에 대한 많은 통찰력을 찾지 못했습니다. 이 시점에서 저는 RubyRep이 잠재적 인 권한 문제를 제거하기 위해 두 개의 로컬 데이터베이스에 있지만 여전히 운이 없도록하려는 시도에 의지했습니다. 나의 현재 RubyRep 구성은 :이 구성RubyRep 설치 오류 원인 "예외가 발생했습니다 : Mysql :: 오류 : 쿼리 : 연결되지 않음 : 표시 테이블"
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
내가 얻을 # rubyrep scan -c rubyrep.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
모든이의 생각과 제안을 많이 주시면 감사됩니다.
케이트