Forums / Install & configuration / how to create multisite with different databases?

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

eZ debug

Timing: Jan 31 2025 00:41:44
Script start
Timing: Jan 31 2025 00:41:44
Module start 'content'
Timing: Jan 31 2025 00:41:44
Module end 'content'
Timing: Jan 31 2025 00:41:45
Script end

Main resources:

Total runtime0.2918 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.1797370.2656
Module start 'content' 0.00610.0119 958.44531,005.5156
Module end 'content' 0.01790.2738 1,963.96093,893.9141
Script end 0.2917  5,857.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00431.4793200.0002
Check MTime0.00130.4387200.0001
Mysql Total
Database connection0.00060.201510.0006
Mysqli_queries0.200168.59201410.0014
Looping result0.00140.48671390.0000
Template Total0.273493.710.2734
Template load0.00070.243010.0007
Template processing0.272793.460510.2727
Override
Cache load0.00050.172410.0005
Sytem overhead
Fetch class attribute can translate value0.00180.612410.0018
XML
Image XML parsing0.00020.069210.0002
General
dbfile0.00642.1789200.0003
String conversion0.00000.001730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs