Am I doing something wrong? This command will not work. I’m trying to move from MySQL to PostgreSQL.
mysql> mysqldump --compatible=postgresql dbname > /tmp/table.sql;
I keep getting an error.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘mysqldump –compatible=postgresql dbname < /tmp/table.sql’ at line 1
What am I doing wrong? Is there an easier way to convert the DB? I’ve read a ton of migration articles but this seems to be the eaiser way to get started with conversion.
mysqldump is a program that runs from the os command line NOT the mysql command line. quit mysql and execute it there and it should be fine.