[ale] Disable foreign key checks in mysql

James Taylor James.Taylor at eastcobbgroup.com
Tue Oct 9 16:25:56 EDT 2012


This is still an ongoing issue that I need to get resolved.
If anyone is interested, or knows anyone that is interested in looking at this for a fee, please contact me off list.
Thanks,
-jt
  
 

James Taylor
678-697-9420
james.taylor at eastcobbgroup.com



>>> "James Taylor" <James.Taylor at eastcobbgroup.com> 9/28/2012   12:55 PM >>> 
By the way, this is a paying gig...
-jt
 
>>> "James Taylor" <James.Taylor at eastcobbgroup.com> 9/28/2012   10:08 AM >>> 
Is anyone interested in taking a look at this remotely?
The client is hitting some deadlines on this and needs more expertise on this than I can provide.
You can contact me directly for details.
-jt


James Taylor
678-697-9420
james.taylor at eastcobbgroup.com



>>> "James Taylor" <James.Taylor at eastcobbgroup.com> 9/25/2012   02:59 PM >>> 
One of my clients is trying to test a disaster recover scenario by restoring a mysql database to an offsite disaster recovery server.o
He has determined he needs to disable foreign key checking. He add the following to the mysqld section of my.conf

init_connect='SET foreign_key_checks = 0'

But it didn't work for him.
He created a regular user to use for the import, which he thinks he needs to do.

Here's the output when the problem occurs.

omniprise-db1-dr:/utility # mysql -uroot -pchanged < omniprise_backup.sql
ERROR 1005 (HY000) at line 36332: Can't create table 'ERP_DATABASE.heartbeat' (errno: -1)

omniprise-db1-dr:/utility # head -n 36340 omniprise_backup.sql | tail -n 9
CREATE TABLE `heartbeat` (
  `id` int(10) unsigned NOT NULL DEFAULT '0',
  `ts` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `heartbeat`

omniprise-db1-dr:/utility # wc -l omniprise_backup.sql
133974 omniprise_backup.sql

Any thoughts?

Keep in mind that I'm not working directly with this and I'm not strong on mysql administration.

-jt



James Taylor
678-697-9420
james.taylor at eastcobbgroup.com




_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo


If this is an unsolicited spam message, please click this link to report it: http://control.eastcobbgroup.com:49285/contents/spamreport.shtml?rptid=13491&srvid=16vl15t




_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo


If this is an unsolicited spam message, please click this link to report it: http://control.eastcobbgroup.com:49285/contents/spamreport.shtml?rptid=13691&srvid=16vl15t




_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo


If this is an unsolicited spam message, please click this link to report it: http://control.eastcobbgroup.com:49285/contents/spamreport.shtml?rptid=13706&srvid=16vl15t





More information about the Ale mailing list