mysql2postgres icon indicating copy to clipboard operation
mysql2postgres copied to clipboard

Unable to locate PostgreSQL destination environment in the configuration file (RuntimeError)

Open clobob opened this issue 6 years ago • 0 comments

Compile and setup this tool on Redhat 6.5.

use the yml file in the 'config' folder. default.database.yml edit and change it to mysql2postgres.yml after implement command 'mysqltopostgres mysql2postgres.yml' i got an error log:

/usr/local/ruby/lib/ruby/gems/2.2.0/gems/mysqltopostgres-0.3.1/lib/mysql2psql/connection.rb:20:in initialize': Unable to locate PostgreSQL destination environment in the configuration file (RuntimeError) from /usr/local/ruby/lib/ruby/gems/2.2.0/gems/mysqltopostgres-0.3.1/lib/mysql2psql/postgres_db_writer.rb:12:in new' from /usr/local/ruby/lib/ruby/gems/2.2.0/gems/mysqltopostgres-0.3.1/lib/mysql2psql/postgres_db_writer.rb:12:in initialize' from /usr/local/ruby/lib/ruby/gems/2.2.0/gems/mysqltopostgres-0.3.1/lib/mysqltopostgres.rb:49:in new' from /usr/local/ruby/lib/ruby/gems/2.2.0/gems/mysqltopostgres-0.3.1/lib/mysqltopostgres.rb:49:in convert' from /usr/local/ruby/lib/ruby/gems/2.2.0/gems/mysqltopostgres-0.3.1/bin/mysqltopostgres:23:in <top (required)>' from /usr/bin/mysqltopostgres:19:in load' from /usr/bin/mysqltopostgres:19:in

'

how can this program work normally? Help~~

clobob avatar Jul 03 '18 08:07 clobob