CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Sandbox db not placing tables? using tables from main site
Pages: [1]

Author Topic: Sandbox db not placing tables? using tables from main site  (Read 2787 times)

PapaLion

  • Guest
Sandbox db not placing tables? using tables from main site
November 12, 2008, 05:17:31 pm
I use J 1.5.7 and the new CiviCRM 1.2.1.  I have two sites on the same server public_html/mysite.com/Joomla  with db1 and public_html/sandbox.com/Joomla with db2. Each site is unique and clone of the other and has it's own db.  I installed CiviCRM via zip on mysite.com/Joomla and all went well. It added numerous tables in the db1.  When I installed CiviCRM on the sandbox.com/Joomla via zip it reported successful install?  BUT! there are no CiviCRM tables on that sandbox.com/Joomla db2. It did place files in components and admin components on the sandbox site.  I have not done any config yet, because this seems WAY wrong to me?  Could you please review this problem and advise. Thanks much,
PapaLion

PapaLion

  • Guest
Re: Sandbox db not placing tables? using tables from main site
November 13, 2008, 07:32:36 am
In further investigation this is possibly a serious problem.  IF you use a shared server, IF you have two copies of Joomla, one on a sandbox for ex; IF you try to load a second CiviCRM using 1.2.1 on that sandbox.com/Joomla then possibly your CiviCRM#2 will not populate tables in its db2.  I am using JoomlaPack to clone the mysite.com/Joomla and it also cannot handle this problem. This renders JoomlaPack useless because when you kickstart on the sandbox.com it corrupts and gives numerous error msgs before it finishes the backup restore...  In my case, regardless of how you try to establish the second copy on the sandbox the sandbox.com gets the components files but NO db so it doesn't work and it somehow??? corrupts the db1 in the primary site also... which is fatal.  No CiivCRM gurus have responded to this thread from CiviCRM.  ?

PapaLion

  • Guest
Re: Sandbox db not placing tables? using tables from main site
November 13, 2008, 08:54:07 am
error msgs generated while doing the JoomlaPack kickstart

Error at the line 2: CREATE TABLE `civicrm_acl_cache` ( `id` int(10) unsigned NOT NULL auto_increment COMMENT 'Unique table ID', `contact_id` int(10) unsigned default NULL COMMENT 'Foreign Key to Contact', `acl_id` int(10) unsigned NOT NULL COMMENT 'Foreign Key to ACL', `modified_date` date default NULL COMMENT 'When was this cache entry last modified', PRIMARY KEY (`id`), KEY `index_acl_id` (`acl_id`), KEY `FK_civicrm_acl_cache_contact_id` (`contact_id`), CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE, CONSTRAINT `FK_civicrm_acl_cache_acl_id` FOREIGN KEY (`acl_id`) REFERENCES `civicrm_acl` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Query:CREATE TABLE `civicrm_acl_cache` ( `id` int(10) unsigned NOT NULL auto_increment COMMENT 'Unique table ID', `contact_id` int(10) unsigned default NULL COMMENT 'Foreign Key to Contact', `acl_id` int(10) unsigned NOT NULL COMMENT 'Foreign Key to ACL', `modified_date` date default NULL COMMENT 'When was this cache entry last modified', PRIMARY KEY (`id`), KEY `index_acl_id` (`acl_id`), KEY `FK_civicrm_acl_cache_contact_id` (`contact_id`), CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE, CONSTRAINT `FK_civicrm_acl_cache_acl_id` FOREIGN KEY (`acl_id`) REFERENCES `civicrm_acl` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

MySQL: Can't create table './almost8_jo152/civicrm_acl_cache.frm' (errno: 150)

Stopped on error



Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Sandbox db not placing tables? using tables from main site
November 13, 2008, 09:29:59 am

sorry, we dont use joomlapack and hence cannot be of any assistance. if you do find a work around, please post back

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

PapaLion

  • Guest
Re: Sandbox db not placing tables? using tables from main site
November 13, 2008, 09:39:00 am
thank you Donald, ?  I now have mysite.com/Joomla db1 with CiviCRM 1.2.1 installed properly.  I have sandbox.com/Joomla with db2 and no CiviCRM atall.  It is a clean install.  They are both on the same server public_html.  IF? I now try to install CiviCRM via zip on this sandbox.com/Joomla I am finding it corrupts the mysite.com/Joomla apparently.  What I see is the components show CiviCRM on the sandbox.com administrator/components but? there are no tables in the db2...
So CAN it be done?  Can you install a second copy of CiviCRM on the same shared server/different URLS? or is this a  characteristic of the thing... one copy on one server?  I dunno.  Would appreciate that being cleared up and then yes, JoomlaPack is investigating the backup issues and I will share any info I get there.
thanks, Bret
PapaLion

PapaLion

  • Guest
Re: Sandbox db not placing tables? using tables from main site
November 13, 2008, 09:51:04 am
from JoomlaPack admin help

We have run into CiviCRM before. It uses foreign keys in it's database tables (where a value in table A is verified against a value in table B). JoomlaPack can't handle foreign keys. You will run into problems with the restore. The person who posted before managed to get the database to restore manually by disabling foreign key checks during the restore. While this is perfectly logical, you could still run into problems with a database too large to restore, etc.

So? if I have a site with CiviCRM and I wish to modify it/&/or/clone to my sandbox to work with a rough copy before I publish could you recommend a procedure?  I would rather not work on the active live primary site to build.  thanks

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Sandbox db not placing tables? using tables from main site
November 13, 2008, 11:24:09 am
Quote from: PapaLion on November 13, 2008, 09:39:00 am
So CAN it be done?  Can you install a second copy of CiviCRM on the same shared server/different URLS?

yes. make sure that it is two distinct installs. From the characteristics of your issues, i suspect the two installs share "some" settings and hence things got messed up (this is just a guess)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

PapaLion

  • Guest
Re: Sandbox db not placing tables? using tables from main site
November 13, 2008, 06:21:06 pm
I clearly had two distinct sites this am, on the same server,  two unique db etc. and still it corrupted and merged both databases as I tried a direct Joomla install/tmp/com_civicrm by the book on the second site. I did a Joomla uninstall on the primary site and it left about 70 "foreign keys/unique tables". Attempting to remove those (PhpMyAdmin/drop) destroyed that db entirely... I have since done fresh reinstalls on both sites, using JoomlaPack to get my site back and I will  use another member/profile component. What A shame I waited the last 4 months for this to work with the J1.5. It does sorta. After most of a whole day uninstalling and restoring I Thank you for the help anyway.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Sandbox db not placing tables? using tables from main site

This forum was archived on 2017-11-26.