Re: Switching Database Engines

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Switching Database Engines
Date: 2011-04-26 19:31:26
Message-ID: 4DB71D8E.5050905@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/26/11 12:24 PM, Carlos Mennens wrote:
>
> I tried running the tool as suggested before and unless I'm doing
> something wrong, I have no idea why it didn't work:
>
> [root(at)db_old postgres]# pwd
> /var/www/html/int/main/wiki/maintenance/postgres
>
> [root(at)db_old postgres]# ls -l
> total 60
> drwxr-xr-x 2 root root 4096 Jul 13 2009 archives
> -rw-r--r-- 1 root root 13988 Mar 12 2009 compare_schemas.pl
> -rw-r--r-- 1 root root 14063 Nov 22 2008 mediawiki_mysql2postgres.pl
> -rw-r--r-- 1 root root 23596 Mar 19 2009 tables.sql
>
> [root(at)db_old postgres]# sh mediawiki_mysql2postgres.pl
> mediawiki_mysql2postgres.pl: line 12: use: command not found
> mediawiki_mysql2postgres.pl: line 13: use: command not found
> mediawiki_mysql2postgres.pl: line 14: use: command not found
> mediawiki_mysql2postgres.pl: line 15: use: command not found
> mediawiki_mysql2postgres.pl: line 17: syntax error near unexpected token `('
> mediawiki_mysql2postgres.pl: line 17: `use vars qw(%table %tz %special
> @torder $COM);'

wild guess says, use perl, not sh to run a .pl

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2011-04-26 20:34:47 Re: Switching Database Engines
Previous Message Carlos Mennens 2011-04-26 19:24:45 Re: Switching Database Engines