Migrating from PostgreSQL to MySQL

Author Message

Jonas Helgemo

Wednesday 18 February 2009 6:28:31 am

I have an eZ site that is currently using PostgreSQL, but I need to migrate it to MySQL in order to move the site to a different server where the only possibility is to use MySQL. Is it possible to export the data from eZ to some standard format without having to deal with the database dumps (e.g some import/export function in eZ)? I have considered using some kind of PostgreSQL -> MySQL converter, but I'm not sure it would work with the complex database structure used in eZ. Any ideas or experiences on how to migrate the database backend from PostgreSQL to MySQL?

juan uribe

Sunday 08 March 2009 9:57:40 pm

hi, hopefully you will read this... and replay..

I´m thinking also on migrating from postgreSQL to MySQL. For a very strange reason. My postgresql seems very unstable. My server runs two ez installs side by side, one on postgres and one on mysql. Mysql is strangelly enough faster and more stable.

So I wanted to ask 1) after migrating how was performance 2) how did you achive the migration...

Thanks---

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:57:48
Script start
Timing: Jan 18 2025 15:57:48
Module start 'layout'
Timing: Jan 18 2025 15:57:48
Module start 'content'
Timing: Jan 18 2025 15:57:49
Module end 'content'
Timing: Jan 18 2025 15:57:49
Script end

Main resources:

Total runtime0.6620 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9141152.6250
Module start 'layout' 0.00570.0025 740.539139.4453
Module start 'content' 0.00820.6524 779.9844456.1719
Module end 'content' 0.66060.0013 1,236.15638.1563
Script end 0.6619  1,244.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5233160.0002
Check MTime0.00140.2063160.0001
Mysql Total
Database connection0.00080.126510.0008
Mysqli_queries0.626294.5997540.0116
Looping result0.00040.0642520.0000
Template Total0.632895.620.3164
Template load0.00230.340320.0011
Template processing0.630695.258220.3153
Template load and register function0.00010.018410.0001
states
state_id_array0.00070.113010.0007
state_identifier_array0.00060.089920.0003
Override
Cache load0.00180.276690.0002
Sytem overhead
Fetch class attribute can translate value0.00060.087020.0003
Fetch class attribute name0.00130.198220.0007
XML
Image XML parsing0.00020.037020.0001
class_abstraction
Instantiating content class attribute0.00000.001520.0000
General
dbfile0.00060.0851100.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs