Migration from MySQL to PostgreSQL

Author Message

Ken Nguyen

Friday 05 November 2010 8:20:48 am

Hello,

I have an eZ publish Website which is using MySQL db.

I would like to know if it's possible to migrate MySQL to PostgreSQL.

Thanks in advance.

Heath

Friday 05 November 2010 6:06:03 pm

Hello Kenneth,

Welcome to the eZ Community.

eZ Publish does support PostgreSQL.

But the conversion of an eZ Publish Mysql Db

to a PostgreSQL is not really an eZ Publish specific question.

Re: http://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL#MySQL

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Gaetano Giunta

Saturday 06 November 2010 6:25:51 am

There are also some php scripts in eZP that can be of use: ezsqldumpschema.php and ezsqlinsertschema.php. Using the two of them, you should be able to migrate an existing eZ database from mysql to postgresql and viceversa.

Principal Consultant International Business
Member of the Community Project Board

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 11:15:23
Script start
Timing: Jan 18 2025 11:15:23
Module start 'layout'
Timing: Jan 18 2025 11:15:23
Module start 'content'
Timing: Jan 18 2025 11:15:25
Module end 'content'
Timing: Jan 18 2025 11:15:25
Script end

Main resources:

Total runtime1.2266 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1563152.6406
Module start 'layout' 0.00590.0030 741.796939.4844
Module start 'content' 0.00891.2163 781.2813572.0547
Module end 'content' 1.22520.0014 1,353.335912.1406
Script end 1.2266  1,365.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2803160.0002
Check MTime0.00140.1142160.0001
Mysql Total
Database connection0.00130.101910.0013
Mysqli_queries1.170095.3860590.0198
Looping result0.00060.0492570.0000
Template Total1.189196.920.5945
Template load0.00190.155120.0010
Template processing1.187296.781120.5936
Template load and register function0.00030.021210.0003
states
state_id_array0.00160.128410.0016
state_identifier_array0.00250.206920.0013
Override
Cache load0.00160.1315200.0001
Sytem overhead
Fetch class attribute can translate value0.00090.075330.0003
Fetch class attribute name0.00110.090150.0002
XML
Image XML parsing0.00120.098630.0004
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00410.3338230.0002
String conversion0.00000.003040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs