How to create a new database "from scratch"?

Author Message

Eric Weik

Friday 13 February 2004 9:22:10 pm

When setting up a new site from scratch (ie. without using the setup wizard), what is the best way to actually build the new database (in MySQL)?

Obviously, you need to create a new database and user:
mysqladmin create ezp_newsite
(and add your new user and privileges).

But then you just have an enpty database. To set up my prototype, I made a copy of the "plain" example database like so:
mysqldump ezp_example_plain > /tmp/ezp_example_plain.sql
mysql ezp_newsite < /tmp/ezp_example_plain.sql

Is there a better way to go about this?

Thanks,
Eric

Marco Zinn

Sunday 15 February 2004 5:50:37 am

I think, there are some .sql files like "clean_data" or "kernel_schema" around.
One just sets up the tables, the other also fills in some data (like the admin user), which you need.

Marco
http://www.hyperroad-design.com

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 19 2025 00:54:58
Script start
Timing: Jan 19 2025 00:54:58
Module start 'layout'
Timing: Jan 19 2025 00:54:58
Module start 'content'
Timing: Jan 19 2025 00:54:59
Module end 'content'
Timing: Jan 19 2025 00:54:59
Script end

Main resources:

Total runtime0.8703 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.0106 589.2891152.6406
Module start 'layout' 0.01060.0055 741.929739.4766
Module start 'content' 0.01610.8526 781.4063531.3047
Module end 'content' 0.86870.0015 1,312.71098.1250
Script end 0.8702  1,320.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4236160.0002
Check MTime0.00140.1641160.0001
Mysql Total
Database connection0.00220.253210.0022
Mysqli_queries0.810493.1182540.0150
Looping result0.00060.0702520.0000
Template Total0.821094.320.4105
Template load0.00240.273920.0012
Template processing0.818694.055320.4093
Template load and register function0.00030.038810.0003
states
state_id_array0.00210.246510.0021
state_identifier_array0.00120.140820.0006
Override
Cache load0.00190.2214180.0001
Sytem overhead
Fetch class attribute can translate value0.00210.240120.0010
Fetch class attribute name0.00100.118940.0003
XML
Image XML parsing0.00400.460820.0020
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00640.7353220.0003
String conversion0.00000.001740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs