Closed gour closed 14 years ago
I'ver noticed the change in config file's syntax, tried again, this time without file parameter in destination, and now I get:
[gour@gaura-nitai si] ./mysql2psql
./mysql2psql:408:in connection': undefined method
split' for nil:NilClass (NoMethodError)
from ./mysql2psql:414:in initialize' from ./mysql2psql:670:in
new'
from ./mysql2psql:670:in `
How do you think is possible to help you without config.yml ?
Well, it's the same config as I used in previous issue... :-)
Here it is:
mysql:
hostname: localhost
port: 3306
socket: /var/run/mysqld/mysqld.sock
username: gour
password: ggd
databasename: simple_invoices
destination:
# if file is given, output goes to file, else postgres
file:
postgres:
hostname: localhost
port: 5432
username: gour
password: ggd
databasename: simple_invoices
tables:
- si_biller
- si_custom_fields
- si_customers
- si_extensions
- si_invoice_item_tax
- si_invoice_items
- si_invoice_type
- si_invoices
- si_log
- si_payment
- si_payment_types
- si_preferences
- si_products
- si_sql_patchmanager
- si_system_defaults
- si_tax
- si_user
- si_user_domain
- si_user_role
Remove tables section at all.
Here is the result:
[gour@gaura-nitai si] ./mysql2psql
./mysql2psql:408:in connection': undefined method
split' for nil:NilClass (NoMethodError)
from ./mysql2psql:414:in initialize' from ./mysql2psql:670:in
new'
from ./mysql2psql:670:in `
Change databasename to database
Now it worked!!
Thank you.
Hello,
I've downloaded both Full_Simple_Invoices.sql and structure.sql from SimpleInvoices project in order to try to migrate database to Postgres, but with both I get the following:
[gour@gaura-nitai si] ./mysql2psql'
./mysql2psql:166:in
list_tables': No database selected (Mysql::Error) from ./mysql2psql:166:in
tables' from ./mysql2psql:614:inconvert' from ./mysql2psql:679:in
Here is the list of tables as shown within mysql:
Any idea?
Sincerely, Gour