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) »
  • Copying database in PhpMyadmin is not possible
Pages: [1]

Author Topic: Copying database in PhpMyadmin is not possible  (Read 2939 times)

Franklin

  • Guest
Copying database in PhpMyadmin is not possible
October 10, 2009, 07:14:32 am
L.S>,

When I try to import a databse extract of a Joomla website that uses CiviCRM 2.2.7, PhpMyadmin returns the following error:

Quote
SQL-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 retourneerde: Documentatie
#1005 - Can't create table 'EXAMPLE_NAME.civicrm_acl_cache' (errno: 150) (<a href="server_engines.php?engine=InnoDB&amp;page=Status&amp;token=b692474db454eb54cf6a4bcde86e4e5d">Details...</a>)

This also happenened when I wanted to transfer a site from an online testing domain to a live domain. Can anyone please help me out with this?

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: Copying database in PhpMyadmin is not possible
October 10, 2009, 10:26:36 am

can u paste the detailed error info (from the details link)

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

Franklin

  • Guest
Re: Copying database in PhpMyadmin is not possible
October 10, 2009, 10:40:07 am
There is no full error text other than the image I posted below:

(http://www.woosh.nl/images/temp/phpmyadmin.png)

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: Copying database in PhpMyadmin is not possible
October 10, 2009, 10:56:35 am

read the last line of the error message (Details....)

Basically you will need to click on that link and do a few google searches to figure out whats happening and why. this is more a mysql/PHPMyAdmin issue rather than a CiviCRM issue

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

Franklin

  • Guest
Re: Copying database in PhpMyadmin is not possible
October 10, 2009, 11:02:35 am
The strange thing is that, when I exclude the CiviCRM tables from the database dump, the installation runs smoothly. Apparantly there is something in the CiviCRM-tables that cause this error. Googling the error line didn't give any results.

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: Copying database in PhpMyadmin is not possible
October 10, 2009, 11:20:15 am

CiviCRM uses the InnoDB engine and FK constraints in the tables. Drupal/Joomla do not

You might want to consider hiring someone from http://civicrm.org/professional/ to help u out

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Copying database in PhpMyadmin is not possible

This forum was archived on 2017-11-26.