ERROR 1005 (HY000): Can't create table 'user_database.user_table' (errno: 157)

2013-04-15 Thread Sai Kumar Ganji
ield10 varchar(100)) max_rows=1000 engine=ndbcluster partition by key(ycsb_key); I get this error: *ERROR 1005 (HY000): Can't create table 'user_database.user_table' (errno:

Re: ERROR 1005 (HY000): (errno: 150) details for show create table and innodb status given

2011-02-22 Thread hari jayaram
Sorry for another email. But this is just to expand on what SHawn said..I could also have created an index and then referenced the column. So without a primary key. I can create the parent , then create the child and the index . mysql> create TABLE parent ( id int(16) , name varchar(128))ENGINE=

Re: ERROR 1005 (HY000): (errno: 150) details for show create table and innodb status given

2011-02-22 Thread hari jayaram
Thanks shawn for your reply. Your simplification of the innodb status message and this post which I just read (http://lists.mysql.com/mysql/221900 ) tells me what I am doing wrong. I need the referenced column to be indexed. I guess one way of ensuring that is to declare it as a primary key . So

Re: ERROR 1005 (HY000): (errno: 150) details for show create table and innodb status given

2011-02-22 Thread Shawn Green (MySQL)
Hello Hari, You already posted the best answer we could provide :) On 2/22/2011 13:00, hari jayaram wrote: Hi I am getting a Foreign key error . ... I have attached the create table syntax for both the parent and child tables and the innodb status below. ... mysql> show innodb status; +---

ERROR 1005 (HY000): (errno: 150) details for show create table and innodb status given

2011-02-22 Thread hari jayaram
Hi I am getting a Foreign key error . The command that gives the error is ALTER TABLE child ADD CONSTRAINT child_parent_fk FOREIGN KEY (id) REFERENCES parent(id) ON DELETE NO ACTION ON UPDATE NO ACTION; And the error message is ERROR 1005 (HY000): Can't create table './testforeignkey

Re: ERROR 1005 (HY000): Can't create table '.\testDataBase\#sql-ec4_c.frm' (errno: 139)

2005-10-24 Thread Heikki Tuuri
iling.database.myodbc Sent: Tuesday, October 25, 2005 5:33 AM Subject: ERROR 1005 (HY000): Can't create table '.\testDataBase\#sql-ec4_c.frm' (errno: 139) --_=_NextPart_001_01C5D90C.62DB5CF5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quot

ERROR 1005 (HY000): Can't create table '.\testDataBase\#sql-ec4_c.frm' (errno: 139)

2005-10-24 Thread Sunil Vishwas
(I am using mysql-5.0.15-win32) Why I am getting this error and is there any way I can fix it, or is it a bug? Between I don't get this error if I change the field size to 767 or below: drop table Address; CREATE TABLE `Address` ( `RecId` CHAR(32) NOT NULL, `WebAddress` VARCHAR(1000), CONS

Re: error 1005 (errno150)

2004-12-07 Thread Jochen Witte
Am Tue, 07 Dec 2004 10:28:58 +0200 schrieb Heikki Tuuri: > Jochen, > > - Original Message - > From: "Jochen Witte" <[EMAIL PROTECTED]> > Newsgroups: mailing.database.myodbc > Sent: Tuesday, December 07, 2004 2:41 AM > Subject: error 1005 (errno150)

Re: error 1005 (errno150)

2004-12-07 Thread Heikki Tuuri
Jochen, - Original Message - From: "Jochen Witte" <[EMAIL PROTECTED]> Newsgroups: mailing.database.myodbc Sent: Tuesday, December 07, 2004 2:41 AM Subject: error 1005 (errno150) Hello, I try to set up replication and woulkd like to export my master with mysqldump. The i

error 1005 (errno150)

2004-12-06 Thread Jochen Witte
Hello, I try to set up replication and woulkd like to export my master with mysqldump. The import fails with ERROR 1005 (HY000) (errno 150)when trying to import the dump on the slave. The create-state which causes the error is: CREATE TABLE fond4client ( id int(11) NOT NULL auto_increment

Re: Foreign Key Error 1005:150

2004-12-06 Thread Heikki Tuuri
Steve, - Original Message - From: <[EMAIL PROTECTED]> Newsgroups: mailing.database.myodbc Sent: Monday, December 06, 2004 1:00 PM Subject: Re: Foreign Key Error 1005:150 --NextPart_Webmail_9m3u9jl4l_14802_1102330771_0 Content-Type: text/plain Content-Transfer-Encoding: 8bit M

RE: Foreign Key Error 1005:150

2004-12-06 Thread Kocsis, Bela
PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, December 05, 2004 2:42 PM To: [EMAIL PROTECTED] Subject: Foreign Key Error 1005:150 I am unable to define a foreign key with the following three tables. I am unable to find the error having searched the documentation and tried several variations

Re: Foreign Key Error 1005:150

2004-12-06 Thread steven . p . long
Michael, Thank you for your reply. Here is a bit more info. I changed the default table type to innodn in the my.ini file before creating the database, so all tables are innodb. I tried the create statements with and without explicit index clauses with all permutations - same result each tim

Re: Foreign Key Error 1005:150

2004-12-05 Thread Michael Stassen
Something is wrong, but it's hard to say what. It seems unlikely you entered exactly those commands and got an error only on the last ALTER TABLE. First, you need InnoDB tables to support foreign keys, but you don't specify the table engine in your CREATE statements. The default is MyISAM, unle

Re: Foreign Key Error 1005:150

2004-12-05 Thread Heikki Tuuri
ql> Best regards, Heikki Tuuri Innobase Oy Foreign keys, transactions, and row level locking for MySQL InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM tables http://www.innodb.com/order.php - Original Message - From: <[EMAIL PROTECTED]> Newsgr

Foreign Key Error 1005:150

2004-12-05 Thread steven . p . long
I am unable to define a foreign key with the following three tables. I am unable to find the error having searched the documentation and tried several variations. Note that I created the first two tables with and without the index clause in the table ddl with no difference in outcome. The t

Re: ERROR 1005 - Please help

2004-08-31 Thread Mulugeta Maru
; > > Mulugeta Maru wrote: > > > I have posted this in a subject called - InnoDB > table > > creation. I am just trying to be specific. Please > > forgive me if this is not allowed. > > > > I have searched the online help and this site. I > ca

Re: ERROR 1005 - Please help

2004-08-30 Thread Michael Stassen
allowed. I have searched the online help and this site. I can not find out why I am getting this error: ERROR 1005 at line 33: Can't creat table '.\enrollment1\enrolls.frm' (errno: 150) Here is what I am trying to do: CREATE TABLE ENROLLS (courseID SMALLINT NOT NULL, sectionID SMALL

ERROR 1005 - Please help

2004-08-30 Thread Mulugeta Maru
I have posted this in a subject called - InnoDB table creation. I am just trying to be specific. Please forgive me if this is not allowed. I have searched the online help and this site. I can not find out why I am getting this error: ERROR 1005 at line 33: Can't creat table '.\e

RE: Error 1005 when adding a Foreign Key

2004-07-02 Thread Héctor Maldonado
Hi, Check if column PlanName is the primary key (and the only one) in table testplans. If so, check if both fields PlanName in testplans and PlanName in runload_list are exactly of the same type and size. Regards, Hector -- Ing. Hector Maldonado Melgar Dpto. Desarrollo de Software TCI S.A.

Re: Error 1005 when adding a Foreign Key

2004-07-02 Thread Josh Chamas
modification. I tried to add one based on the users guide, see command/response below, without success. Obviously I am missing something. Any suggestions? mysql> alter table runload_list add foreign key (PlanName) references testplans (PlanName) on update cascade on delete restrict; ERROR 1005: Ca

Error 1005 when adding a Foreign Key

2004-07-02 Thread Bartis, Robert M (Bob)
based on the users guide, see command/response below, without success. Obviously I am missing something. Any suggestions? mysql> alter table runload_list add foreign key (PlanName) references testplans (PlanName) on update cascade on delete restrict; ERROR 1005: Can't create table

Re: mysql 5.0: ERROR 1005 (HY000)

2004-06-06 Thread Michael Stassen
) on delete set null on update cascade ) type=innodb; ERROR 1005 (HY000): Can't create table './url/site.frm' (errno: 150) the perms are correct indeed without the constraint there are no problems. You have to put an index on cath before you can use it as a foreign

mysql 5.0: ERROR 1005 (HY000)

2004-06-06 Thread saiph
) on delete set null on update cascade ) type=innodb; ERROR 1005 (HY000): Can't create table './url/site.frm' (errno: 150) the perms are correct indeed without the constraint there are no problems. can you help me in testing? mororover when running the test suite i have: E

Re: MySQL 4.0.15 : Foreign Key - ERROR 1005 (errno: 150)

2004-05-06 Thread Victoria Reznichenko
Y KEY (USER_ID) > ) TYPE=INNODB > > CREATE INDEX USERDETAILS_N49 ON USERDETAILS (USER_USER_ID_OID) > > This all works fine. > > > > I then try to create one of the foreign keys between the 2 tables > ALTER TABLE jpox.USERDETAILS ADD CONSTRAINT USERDETAILS_FK1 FOREIGN KE

MySQL 4.0.15 : Foreign Key - ERROR 1005 (errno: 150)

2004-05-05 Thread Andy Jefferson
reate one of the foreign keys between the 2 tables ALTER TABLE jpox.USERDETAILS ADD CONSTRAINT USERDETAILS_FK1 FOREIGN KEY (USER_USER_ID_OID) REFERENCES jpox.`USER` (USER_ID) MySQL (4.0.15) responds with ERROR 1005: Can't create table './jpox/#sql-5b3_5a.frm' (errno: 150) This wo

Re: ERROR 1005 at line 12: Can't create table

2004-02-11 Thread Victoria Reznichenko
"naveen" <[EMAIL PROTECTED]> wrote: > thanks Victoria Reznichenko > > for your help > where will i put this parameter > SET FOREIGN_KEY_CHECKS = 0; > in the dump file or under mysql pormpt.I added through mysql but still the > same error comes. You should put SET FOREIGN_KEY_CHECKS = 0; at the

Re: ERROR 1005 at line 12: Can't create table

2004-02-11 Thread naveen
toria Reznichenko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 11, 2004 4:25 PM Subject: Re: ERROR 1005 at line 12: Can't create table > "naveen" <[EMAIL PROTECTED]> wrote: > > Hi > > when i try to put the data(xyz.s

Re: ERROR 1005 at line 12: Can't create table

2004-02-11 Thread Victoria Reznichenko
"naveen" <[EMAIL PROTECTED]> wrote: > Hi > when i try to put the data(xyz.sql) taken using mysqldump commant > > bin/mysql --user=root --password=secret xyz < xyz.sql > > ERROR 1005 at line 12: Can't create table './XYZ/Bcl.frm' (errno: 150)

Re: ERROR 1005 at line 12: Can't create table

2004-02-11 Thread Aleksandar Bradaric
Hi, C:\mysql\bin>perror 150 Error code 150: Unknown error 150 = Foreign key constraint is incorrectly formed Take care, Aleksandar -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

ERROR 1005 at line 12: Can't create table

2004-02-11 Thread naveen
Hi when i try to put the data(xyz.sql) taken using mysqldump commant bin/mysql --user=root --password=secret xyz < xyz.sql ERROR 1005 at line 12: Can't create table './XYZ/Bcl.frm' (errno: 150) what is this comming,why is it comming. with regards naveen

ERROR 1005 at line 38: Can't create table '.\test\#sql-748_17.frm' (errno: 150)

2004-01-08 Thread Morten Gulbrandsen
LTER TABLE relvar_a# won't do line 38 ADD FOREIGN KEY (DNO) REFERENCES relvar_b(DNUMBER) ON DELETE SET DEFAULT # is supported in 5.0.0 alpha ON UPDATE CASCADE; ===== ERROR 1005 at line 38: Can't create table '.\test\#sql-748_17.frm' (errno: 1

ERROR 1005 at line 38: Can't create table '.\test\#sql-748_17.frm' (errno: 150)

2004-01-08 Thread Morten Gulbrandsen
r_b(DNUMBER) ON DELETE SET DEFAULT ON UPDATE CASCADE; ERROR 1005 at line 38: Can't create table '.\test\#sql-748_17.frm' (errno: 150) Bye mysql> select version(); ++ | version() | ++ | 5.0.0-alpha-max-nt | +---

Re: ERROR 1005 during add foreign key

2004-01-05 Thread Steve Folly
On 5 Jan 2004, at 21:10, Sid Lane wrote: on mysql 4.0.14-standard (x86 Linux) when I try the following: alter table child_table add ( foreign key (column1, column2) references parent_table on delete cascade) ; on an existing innodb table I get: ERROR 1005: Can't create table './d

ERROR 1005 during add foreign key

2004-01-05 Thread Sid Lane
on mysql 4.0.14-standard (x86 Linux) when I try the following: alter table child_table add ( foreign key (column1, column2) references parent_table on delete cascade) ; on an existing innodb table I get: ERROR 1005: Can't create table './dbname/#sql-70f5_b92.frm' (errno: 1

AW: mutual declarations produce Error 1005 (errno: 150)

2003-08-14 Thread Morten Gulbrandsen
ed 0, updated 0, deleted 0, read 0 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s END OF INNODB MONITOR OUTPUT 1 row in set (0.00 sec) mysql> ALTER TABLE EMPLOYEE -> ADD FOREIGN KEY (DNO)REFERENCES DEPART

ERROR 1005: Can't create table './db/table.frm' (errno: 150)

2003-08-06 Thread CoOL! .
Hello, I found the key to solve this problem in: http://darkstar.ist.utl.pt/mysql/doc/en/InnoDB_foreign_key_constraints.html You'll probably need an INDEX for that new foreign key you are declaring in older versions this isn't neccesary but in latest ones it is a restriction. You can have more i

Re: ERROR 1005: Can't create table './db/table.frm' (errno: 150)

2003-08-06 Thread CoOL! .
Hello, I found the key to solve this problem in: http://darkstar.ist.utl.pt/mysql/doc/en/InnoDB_foreign_key_constraints.html You'll probably need an INDEX for that new foreign key you are declaring in older versions this isn't neccesary but in latest ones it is a restriction. You can have more i

Re: ERROR 1005 at line 3: Can't create table '.\company\employee.frm' (errno: 150)

2003-08-01 Thread Victoria Reznichenko
gt; DNO INT NOT NULL DEFAULT 1, > CONSTRAINT EMPPK >PRIMARY KEY (SSN), > FOREIGN KEY (SUPERSSN) REFERENCES EMPLOYEE(SSN), # THIS woun't DO !!! > FOREIGN KEY (DNO) REFERENCES DEPARTMENT(DNUMBER))TYPE=InnoDB; # > > > SHOW CREATE TAB

ERROR 1005 at line 3: Can't create table '.\company\employee.frm' (errno: 150)

2003-08-01 Thread Morten Gulbrandsen
ARTMENT(DNUMBER))TYPE=InnoDB; # SHOW CREATE TABLE EMPLOYEE; SHOW TABLE STATUS FROM COMPANY LIKE "EMPLOYEE"; C:\mysql\bin>mysql < Company_00.sql > out.txt ERROR 1005 at line 3: Can't create table '.\company\employee.frm' (errno: 150) What can

Re: Error 1005...

2003-08-01 Thread Egor Egorov
Karam Chand <[EMAIL PROTECTED]> wrote: > Greetings > > I have MySQL 4.0.14 running on WinXP. > > Whenever I create a temporary table from an existing > table that has multiple keys ( the temporary table has > columns reordered from the original table ) with a > query like - > > create temporary

Error 1005...

2003-07-31 Thread Karam Chand
Greetings I have MySQL 4.0.14 running on WinXP. Whenever I create a temporary table from an existing table that has multiple keys ( the temporary table has columns reordered from the original table ) with a query like - create temporary table if not exists `mn`.`sqlyog_23796` ( `entryid` int(6)

Re: ERROR 1005: Can't create table './db/table.frm' (errno: 150)

2003-06-16 Thread Heikki Tuuri
foreign_key_checks=0? Best regards, Heikki Innobase Oy http://www.innodb.com InnoDB - transactions, foreign keys, and a hot backup tool for MySQL Order MySQL support from http://www.mysql.com/support/index.html . Subject: ERROR 1005: Can't create table './db/table.frm' (e

ERROR 1005: Can't create table './db/table.frm' (errno: 150)

2003-06-16 Thread Ben Clewett
Dear MySQL: I am getting the error 'ERROR 1005: Can't create table './db/table.frm' (errno: 150)' using InnoDB tables on 4.0.13-max-log. This is nothing to do with referential checking. The command: SET foreign_key_checks=0 Does alow the import of referential tables,

ERROR 1005 , Please help

2003-02-14 Thread sindhu
Hi , I have a problem with the mysql database restore. When I take a backup of a database and try to restore it on a particular server(Production) , I get the following error message. ERROR 1005 at line 12: Can't create table './CloneTracking/HitPickFileMaster.frm' (errno: 150