Re: Foreign keys in mysqldump?

2002-03-12 Thread David Felio
InnoDB Hot Backup-0.33 beta is now available for Windows NT/2000/XP and Linux. Any plans for Solaris by the May 2002 release date? From: Heikki Tuuri [EMAIL PROTECTED] The beta testing of InnoDB Hot Backup (a non-free add-on tool) started on Monday. If you want to take part in the beta

Re: foreign keys in mysql

2002-03-06 Thread Arjen Lentz
Hi, On Thu, 2002-03-07 at 08:20, bin cai wrote: I am encountering one problem. I am using mysql as the dabase for my application. I create a table like takeexam as following:create table takelabexam( sid varchar(10) not null, cid varchar(20) not null,

RE: foreign keys to what end?

2002-02-21 Thread adam nelson
Using foreign keys is a really, really good idea. Programs can't be trusted (and what about running sql queries ad hoc). Even with a really big database I wouldn't get rid of the keys, just time to move to a bigger better machine/configuration. -Original Message- From: David Felio

Re: Re: Foreign keys in InnoDB tables

2002-02-16 Thread Heikki Tuuri
Martin, -Original Message- From: Martin Bratbo [EMAIL PROTECTED] Newsgroups: mailing.database.mysql Date: Saturday, February 16, 2002 4:46 PM Subject: Re: Re: Foreign keys in InnoDB tables Heikki here is the statements that i cant get to work: first I create one innoDB table: fk1

Re: Foreign keys in InnoDB tables

2002-02-10 Thread Heikki Tuuri
Martin, there is a bug in 4.0.1 which can make a foreign key definition to fail in an assertion failure in dict0crea.c, if you have set default-character-set to something else than latin1 in my.cnf. Harald Fuchs reported the bug on this mailing list a couple of days ago, and the bug is now

Re: Foreign keys

2002-01-15 Thread Heikki Tuuri
Pierre, I tested this with versions 3.23.46 and .48 on Linux and they worked ok: mysql CREATE TABLE FIRST (NAME VARCHAR(15), COD VARCHAR(10) NOT NULL, PRIMARY - KEY(COD)) TYPE=INNODB; Query OK, 0 rows affected (0.02 sec) mysql CREATE TABLE SECOND (ID INT NOT NULL, F_COD VARCHAR(10),

Re: FOREIGN KEYs and ALTER TABLE

2002-01-03 Thread Heikki Tuuri
Hi! With InnoDB tables under 3.23.4x, if you perform an ALTER TABLE on a table, any foreign key declarations that point to that table fail to work (they always return a failure). Is this a known bug? I don't see it on the InnoDB todo or bug list, but I seem to remember hearing about it

Re: FOREIGN KEYs and ALTER TABLE

2002-01-03 Thread Philip Molter
On Thu, Jan 03, 2002 at 01:48:21PM +0200, Heikki Tuuri wrote: : Hi! : : This is a feature (= documented bug). Look at : http://www.innodb.com/ibman.html: : ... : Updated December 13, 2001: Added a note that you should not do an ALTER : TABLE to a table which has or is referenced in a foreign key

Re: FOREIGN KEYs and ALTER TABLE

2002-01-03 Thread Heikki Tuuri
Hi! -Original Message- From: Philip Molter [EMAIL PROTECTED] To: Heikki Tuuri [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thursday, January 03, 2002 3:21 PM Subject: Re: FOREIGN KEYs and ALTER TABLE On Thu, Jan 03, 2002 at 01:48:21PM +0200, Heikki Tuuri wrote: : Hi

Re: FOREIGN KEYs and ALTER TABLE

2002-01-03 Thread Steve Rapaport
Hrmm. Is that a feature that's planned to be fixed. Obviously, if you have a table with thousands or millions of rows in it, ALTER TABLE is a lot easier than copying the table to a temp table, dropping the original table, creating a new table, and copying the data back in. Actually,

Re: FOREIGN KEYs and ALTER TABLE

2002-01-03 Thread Philip Molter
On Thu, Jan 03, 2002 at 05:21:49PM +0200, Heikki Tuuri wrote: : mysql CREATE TABLE parent(id INT NOT NULL, PRIMARY KEY (id)) TYPE=INNODB; : Query OK, 0 rows affected (0.11 sec) : : mysql CREATE TABLE child(id INT, parent_id INT, INDEX par_ind (parent_id), : - FOREIGN KEY

Re: FOREIGN KEYs and ALTER TABLE

2002-01-03 Thread Heikki Tuuri
Hi! Use SELECT INTO OUTFILE + READ DATA INFILE Do not rename tables. Regards, Heikki -Original Message- From: Philip Molter [EMAIL PROTECTED] To: Heikki Tuuri [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thursday, January 03, 2002 5:54 PM Subject: Re: FOREIGN KEYs

Re: Foreign keys just for table metadata?

2001-05-25 Thread Adriano Nagelschmidt Rodrigues
Rolf Hopkins writes: You can still use foreign keys, just that it has no effect in mysql. Yes, I know. I just would like to provide the information in the CREATE TABLE definition and be able to retrieve it later. Nothing more. The manual says: In the near future we will extend the

Re: Foreign Keys

2001-04-07 Thread Bob Hall
On Thu, 5 Apr 2001, Dennis Gearon wrote: Date: Thu, 05 Apr 2001 14:24:25 -0700 From: Dennis Gearon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Foreign Keys Are people using Mysql using foreign keys and how are they using them? It seems that the way to use them is with

Re: Foreign Keys

2001-04-06 Thread oltra jean-michel
On Thu, 5 Apr 2001, Dennis Gearon wrote: Date: Thu, 05 Apr 2001 14:24:25 -0700 From: Dennis Gearon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Foreign Keys Are people using Mysql using foreign keys and how are they using them? It seems that the way to use them is with the scripting

Re: Foreign Keys

2001-04-05 Thread Thalis A. Kalfigopoulos
On Thu, 5 Apr 2001, Dennis Gearon wrote: Are people using Mysql using foreign keys and how are they using them? It seems that the way to use them is with the scripting language used to access the database. Sure we are...the manual way i.e. one insert/delete at a time for each foreign key

<    1   2