logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

SV: SV: Easiest way to transfer mails from postgresql 1.x to mysql 2.x or 1: msg#00102

mail.imap.dbmail

Subject: SV: SV: Easiest way to transfer mails from postgresql 1.x to mysql 2.x or 1.x does not matter.......

Hi Poul,

The alias is "mikael@xxxxxxxx"

Nope did not help to solve the problem.

I have now tried to get the newest version that includes the
"./migrate_singe_user.py" and it still fails.....

I'm trying to migrate from PostGreSQL to MySQL version 3.23.57.

If there are more information need just ask.....

I want to get the database moved ASAP.


Here are output from the new single user migration script are a down:
LOADING DATABASE DRIVERS

loading MySQL driver
loading MySQL driver
connecting to databases
Name of user to copy data for?mikael@xxxxxxxx
finding user in database
1 =nieuwe user
copying aliases table
copied 5 records from aliases table
copying mailboxes, messages and messageblocks table
Traceback (most recent call last):
File "./migrate_singe_user.py", line 141, in ?
cursor_2.execute("""INSERT INTO mailboxes
File
"/usr/ports/databases/py-mysql/w-py-mysql-0.9.2/fake-i386/usr/local/lib/pyth
on2.2/site-packages/MySQLdb/cursors.py", line 95, in execute
return self._execute(query, args)
File
"/usr/ports/databases/py-mysql/w-py-mysql-0.9.2/fake-i386/usr/local/lib/pyth
on2.2/site-packages/MySQLdb/cursors.py", line 114, in _execute
self.errorhandler(self, exc, value)
File
"/usr/ports/databases/py-mysql/w-py-mysql-0.9.2/fake-i386/usr/local/lib/pyth
on2.2/site-packages/MySQLdb/connections.py", line 33, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1136, "Column count doesn't match value
count at row 1")
fw#



>-----Oprindelig meddelelse-----
>Fra: dbmail-admin@xxxxxxxxxx [mailto:dbmail-admin@xxxxxxxxxx]
>På vegne af Paul J Stevens
>Sendt: 31. januar 2004 19:06
>Til: dbmail@xxxxxxxxxx
>Emne: Re: SV: [Dbmail] Easiest way to transfer mails from
>postgresql 1.x to mysql 2.x or 1.x does not matter.......
>
>What are the exact aliases that make the script barf?
>
>Try:
>
>cursor_2.execute("""INSERT INTO auto_notifications
> (auto_notify_idnr, user_idnr, notify_address)
> VALUES ('%s', '%s', '%s')""", record)
>
>instead around line 113. Notice the single quotes around the values.
>
>Sorry for not making this a proper diff. The missing quotes
>are a generic problem I notice in this code. I'm guessing
>there may be some weird chars in your aliases that drive
>python's string interpolation into recursive mania.
>
>Also, aside from messages and messageblks you should be able
>to dump and load the 1.2 tables straight into the 2.0 db.
>
>
>
>
>
>Mikael Syska wrote:
>
>>Plese there must be someone how can help me with the errors...
>>If, then plese contact me on MSN: mikael@xxxxxxxx or ICQ: 37679058...
>>
>>Or just reply to the list.....
>>
>>
>>
>>>-----Oprindelig meddelelse-----
>>>Fra: dbmail-admin@xxxxxxxxxx
>[mailto:dbmail-admin@xxxxxxxxxx] På vegne
>>>af Mikael Syska
>>>Sendt: 29. januar 2004 17:57
>>>Til: dbmail@xxxxxxxxxx
>>>Emne: [Dbmail] Easiest way to transfer mails from postgresql 1.x to
>>>mysql 2.x or 1.x does not matter.......
>>>
>>>All in the subject, nothing more to say, I have tried the script in
>>>the dbmail 2.0 from 1 to 2, but I can't get it to work.....
>>>
>>>Here are the output from the script....
>>>------------------------------------------------------
>>>LOADING DATABASE DRIVERS
>>>
>>>loading MySQL driver
>>>loading PostgreSQL driver
>>>connecting to databases
>>>copying aliases table
>>>Traceback (most recent call last):
>>> File "./migration_1_x_to_2_0alpha.py", line 97, in ?
>>> cursor_2.execute("""INSERT INTO aliases (alias_idnr, alias, File
>>>"/usr/local/lib/python2.3/site-packages/MySQLdb/cursors.py",
>>>line 95, in execute
>>> return self._execute(query, args)
>>> File
>>>"/usr/local/lib/python2.3/site-packages/MySQLdb/cursors.py",
>>>line 114, in _execute
>>> self.errorhandler(self, exc, value) File
>>>"/usr/local/lib/python2.3/site-packages/MySQLdb/connections.py"
>>>, line 33, in defaulterrorhandler
>>> raise errorclass, errorvalue
>>>RuntimeError: maximum recursion depth exceeded
>>>------------------------------------------------------
>>>
>>>I'm really desperate, any help would be great....
>>>
>>>Is there are IRC channel for dbmail?? If where????
>>>
>>>// ouT
>>>
>>>_______________________________________________
>>>Dbmail mailing list
>>>Dbmail@xxxxxxxxxx
>>>https://mailman.fastxs.nl/mailman/listinfo/dbmail
>>>
>>>
>>>
>>
>>_______________________________________________
>>Dbmail mailing list
>>Dbmail@xxxxxxxxxx
>>https://mailman.fastxs.nl/mailman/listinfo/dbmail
>>
>>
>>
>
>--
> ________________________________________________________________
> Paul Stevens mailto:paul@xxxxxx
> NET FACILITIES GROUP PGP: finger paul@xxxxxx
> The Netherlands________________________________http://www.nfg.nl
>
>_______________________________________________
>Dbmail mailing list
>Dbmail@xxxxxxxxxx
>https://mailman.fastxs.nl/mailman/listinfo/dbmail
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation