how to create multisite with different databases?

Author Message

Albert Berenguer

Tuesday 20 May 2003 9:34:18 am

hi!
i want to create multiple sites with only one installation of eZ Publish and also with one database per site, but, how do i create new databases with the correct structucte of tables?
then the user and the password for connecting to the new database is the same as the default one?

thanks

berto

Jo Henrik Endrerud

Tuesday 20 May 2003 9:53:19 am

The SQL schemas for new databases are placed in kernel/sql
You need to set the database username and password manually before you insert this content into the database (you do this with a GRANT ... function). For more information about this, check the installation documentation in the eZ publish distribution

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Albert Berenguer

Wednesday 21 May 2003 9:04:56 am

thanks for all! although i had to run the sql file using phpMyAdmin (because i wasn't able using command line...) everything went right.

thanks

Alexandre Cunha

Friday 13 June 2003 7:23:25 pm

Hi Albert,

Have you sucefully configure multiple sites using one database for each site ?

Just trying to do the same.
See my other post at http://ez.no/developer/ez_publish_3/forum/setup_design/how_use_different_databases_for_different_sites_with_some_ez_instalation_

Thanks

axel

http://AlexandreCunha.com

Albert Berenguer

Wednesday 02 July 2003 7:20:17 am

yes i did it. look at the ez manuals here in the web, at the "install manually" section (http://ez.no/manual/install/install_manually) you can find the way to create and configure the database to have the correct structure of tables. then the only thing is to create a new siteaccess with the correct information of the database you created.

if you don't configure new domains you can access the new site by http://your_host/index.php/newsite/

hope it was helpfull, bye!

Alexandre Cunha

Wednesday 02 July 2003 4:34:29 pm

Thanks Albert,

I forgot come where to announce my sucess configuring multidatabase.

So simple like this (ezp 3.1):

- Copy settings\siteaccess\demo\ to settings\siteaccess\your_site_name\ - This creates a new dir of settings for the new site
- Copy settings\siteaccess\amin\ to settings\siteaccess\your_site_name_admin\ - This creates a new dir iof settings to admin new site
- Using myphpadmin, mysql console or other mysql manager utility copy the database created at instalation to a database with the name your_site_name. Using windows, go to mysql\data\install_database_name and do a copy&paste to create a DB copy. Rename it.
- Edit settings\siteaccess\your_site_name\site.ini.append and settings\siteaccess\your_site_name_admin\site.ini.append. Look at [DatabaseSettings] and change the settings to the new database.

- Browse http://your_domain/your_site_name/ to see the new site using the new database. http://your_domain/your_site_name_admin/ to admin the new site.

Maybe this helps someone else.

axel

http://AlexandreCunha.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 18 2025 19:16:39
Script start
Timing: Jan 18 2025 19:16:39
Module start 'layout'
Timing: Jan 18 2025 19:16:39
Module start 'content'
Timing: Jan 18 2025 19:16:40
Module end 'content'
Timing: Jan 18 2025 19:16:40
Script end

Main resources:

Total runtime1.3586 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.9375152.6563
Module start 'layout' 0.00570.0034 742.593839.5078
Module start 'content' 0.00911.3480 782.1016565.9141
Module end 'content' 1.35710.0015 1,348.015612.1094
Script end 1.3586  1,360.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2302160.0002
Check MTime0.00130.0938160.0001
Mysql Total
Database connection0.00130.097710.0013
Mysqli_queries1.299695.6592680.0191
Looping result0.00090.0645660.0000
Template Total1.324297.520.6621
Template load0.00340.247220.0017
Template processing1.320897.215820.6604
Template load and register function0.00020.013910.0002
states
state_id_array0.00110.082210.0011
state_identifier_array0.00150.112220.0008
Override
Cache load0.00280.2093360.0001
Sytem overhead
Fetch class attribute can translate value0.00090.065130.0003
Fetch class attribute name0.00150.111060.0003
XML
Image XML parsing0.00050.036330.0002
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00050.0385100.0001
String conversion0.00000.000840.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/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: 20
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs