Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    MYSQL




Errno:145


This is the fifth time I can not access my tables because of this error. In the past I recreated the tables and moved forward. Is there anything I can do to retreive the data I can not get to because of this error.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
ERRNO 150
OK.. I've been at this since 12:00 Noon - I didn't need a reminder that I didn't want to be a programmer when I grew up - I'm already changing fields .. Any help here is appreciated - I have gone step by measly step and the problem is in the foreign key ( there is no help in my book or online - I've tried it all..)

Closest one:
CREATE TABLE Coaches(CoachID INT(2) NOT NULL AUTO_INCREMENT PRIMARY KEY,
CoachLName varchar(40) NOT NULL,
CoachFName varchar(25) NOT NULL,
DOB date NOT NULL default '00-00-00',
Carwins INT(3) NOT NULL default '0',
Carloss INT(3) NOT NULL default '0',
INDEX (CoachID),
FOREIGN KEY (CoachID) REFERENCES team (TeamID)
)TYPE=InnoDB;

Errno 150
The table has not foreign keys or index and as far as I can tell (and remember) no foreign keys pointing to it. The table is associated with another table but I am managing that through php as opposed to foreign keys, so unless INODB has some sort of AI, I dont think there is any explicit linking.

The table has probably been imported as opposed to natively constructed on the server if that matters (don't remember if I moved it from on local server to another).

(errno: 145)
Using MySQL 4.1.9, I got my 'sessions' table corruputed:
---------
1016 - Can't open file: 'sessions.MYD'. (errno: 145)
---------

In order to fix it, I removed it, and created a new one. Now I want to know why
I suffered this problem, since I think it's a common problem with session tables
on websites.

Any similar experience with session tables?

Foreign Key : Errno 150
I'm having issues creating a table with a foreign key. I've looked over the documentation and examples as carefully as I can but my fk constraints are still not formed correctly.
Code:

Create Table Errno:121 - Please Help!
CREATE TABLE `db_belafdeling`.`tbl_cat_testcategorie`
(
`ID` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`naam` VARCHAR(45) NOT NULL,
`resp_id` INTEGER UNSIGNED,
PRIMARY KEY(`ID`),
CONSTRAINT `FK_resp_id` FOREIGN KEY `FK_resp_id` (`resp_id`)
REFERENCES `tbl_respondenten` (`ID`)
ON UPDATE RESTRICT
ON DELETE RESTRICT
)ENGINE = InnoDB;
while this will...

CREATE TABLE `db_belafdeling`.`test_tabel` (
`ID` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`naam` VARCHAR(45) NOT NULL,
`property_id` INTEGER UNSIGNED,
`anotherproperty_id` INTEGER UNSIGNED,
PRIMARY KEY(`ID`),
CONSTRAINT `FK_test_tabel_1` FOREIGN KEY `FK_test_tabel_1` (`anotherproperty_id`)
REFERENCES `tbl_beroeptype` (`ID`)
ON DELETE RESTRICT
ON UPDATE RESTRICT
)
ENGINE = InnoDB;

Error 1005 <errno: 121>
I am trying to create a table, i have already created the Member Table so there should be a problem with the Foreign key i take it ?? I keep getting this message though ( Error 1005 <errno: 121> ) ......

Connection Error - Errno 4
I have a clients-server application that is using (the server) mysql.

Time to time, I'm getting the error :

Can't connect to MySQL server on 'x.x.x.x' (4) (mysql_errno = 2003).

Mysql is 4.0.18. It's on a debian with 2.4.20.

4 is so the errno, wich here is :
[color=blue]
>Error code 4: Interrupted system call[/color]


Is there a way to prevent mysql from beeing interrupted in its connection phase ?

Errno: 150, Foreign Key Constraints
I am trying to create a table with no primary key, but 3 foreign keys, to tie three tables (all WITH primary keys) together. Here is the command that MYSQL Administrator produces:

CREATE TABLE `homebase`.`user-link-cat` (
`userID` INTEGER NOT NULL,
`linkID` INTEGER NOT NULL,
`catID` INTEGER NOT NULL,
CONSTRAINT `FK_user` FOREIGN KEY `FK_user` (`userID`)
REFERENCES `users` (`userID`)
ON DELETE RESTRICT
ON UPDATE RESTRICT,
CONSTRAINT `FK_link` FOREIGN KEY `FK_link` (`linkID`)
REFERENCES `links` (`linkID`)
ON DELETE RESTRICT
ON UPDATE RESTRICT,
CONSTRAINT `FK_cat` FOREIGN KEY `FK_cat` (`catID`)
REFERENCES `categories` (`catID`)
ON DELETE RESTRICT
ON UPDATE RESTRICT
)
TYPE = InnoDB;

And here is the error it returns:

MySQL Error Number 1005
Can't create table '.homebaseuser-link-cat.frm' (errno: 150)

It would seem that I have a malformed set of foreign key constraints, but I can't figure how. Does anyone see my problem? Is there a way to get a more informative error message?

Can't Create Table Errno: 150
I'm having difficulty building a table using the following script. Does anyone have any idea why this would fail? I'm using MySql 5.0.18 on Windows 2000. I have been migrating Access data into MySql and slowly working through the errors I have encountered but cannot get this one fixed. The Companies table 'companyid' is referenced as a Foreign key on another table but that table was built without any problem. Code:

Errno 145 Recurring On Version 3.23.51-nt
I'm running MYSQL 3.23.51-nt on many servers, tables can have as many as 587921 rows see below. I keep getting table crashes ? A repair will fix..but whats teh root cause ? Is there a BUG with 3.23.51-nt and a busy table ? Code:

Errno: 150 Creating A Foreign Key
I tried to create a foreign key for InnoDB table, but received the "Can‘t create table ... (errno: 150)" error. What‘s wrong?

Can't Open File (errno :1)
I'm doing a project with Visual Studio.net with database(there's 4 tables inside it)on MySql.But I'm having problem connecting them both..I've done the programming codes but when I try to open my database in QueryBrowser.it says "can't open file (errno :1)" n below it would be "A MySql error was encountered. The message is : cannot fetch table information. The following error occured. Can't open file".

It's the same with Visual Studio.net whenever I execute it..it says "type mysqlconnection/mysqldatareader is not defined"

Create Table Errno:121
why this won't execute?
CREATE TABLE `db_belafdeling`.`tbl_cat_testcategorie`
(
`ID` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`naam` VARCHAR(45) NOT NULL,
`resp_id` INTEGER UNSIGNED,
PRIMARY KEY(`ID`),
CONSTRAINT `FK_resp_id`
FOREIGN KEY `FK_resp_id` (`resp_id`)
REFERENCES `tbl_respondenten` (`ID`)
ON UPDATE RESTRICT ON
DELETE RESTRICT
)ENGINE = InnoDB;
and this will...?
CREATE TABLE `db_belafdeling`.`test_tabel` (
`ID` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`naam` VARCHAR(45) NOT NULL,
`property_id` INTEGER UNSIGNED,
`anotherproperty_id` INTEGER UNSIGNED,
PRIMARY KEY(`ID`),
CONSTRAINT `FK_test_tabel_1` FOREIGN KEY `FK_test_tabel_1` (`anotherproperty_id`)
REFERENCES `tbl_beroeptype` (`ID`)
ON DELETE RESTRICT
ON UPDATE RESTRICT
)
ENGINE = InnoDB;

Error On Create - Errno:150
Does anyone see any reason why the following query would fail...I have tried several other ways to write this with varying syntax and they all fail...I am trying to port this table over from Oracle (to MySQL) and I am using the cluster version of the software.

Thanks,

Shain


CREATE TABLE `dyn`.`type_audio_props_for_creatives` (
`tapfc_bitrate` DECIMAL(22, 0) NOT NULL,
`tapfc_channel_mode_id` DECIMAL(22, 0) NOT NULL,
`tapfc_media_format_id` DECIMAL(22, 0) NOT NULL,
`tapfc_is_partner` DECIMAL(22, 0) NOT NULL DEFAULT 0,


PRIMARY KEY (`tapfc_channel_mode_id`, `tapfc_is_partner`, `tapfc_bitrate`),

CONSTRAINT `r_3` FOREIGN KEY (`tapfc_channel_mode_id`)
REFERENCES `dyn`.`type_channel_mode` (`channel_mode_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `r_4` FOREIGN KEY `r_4` (`tapfc_media_format_id`)
REFERENCES `dyn`.`type_media_format_creatives` (`creative_media_format_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION
)
ENGINE = INNODB;

#1005 - Can't Create Table (errno: 150)
I am getting the error message:
#1005 - Can't create table './wagconsulting/job_hr_contact_disp_yn.frm' (errno: 150)

I am using MySQL 5.0.37-log

The Primary Key table definition is:
----------------------------------------------------------------------
create table job
(
job_id mediumint unsigned auto_increment,
job_title varchar (120) not null,
job_desc text not null,
primary key (job_id)
) type=innodb;

----------------------------------------------------------------------

And the Foreign Ket table definition is:
----------------------------------------------------------------------
create table job_hr_contact_disp_yn
(
job_id mediumint unsigned not null,
emp_name char (1),
email char (1),
index jhr_contacts_disp_index (job_id),
foreign key (job_id) references job (job_id) on delete cascade
) type=innodb;
----------------------------------------------------------------------

The datatypes for the PK and FK are exactly the same. I also tried by removing the index clause from the FK table, but still getting the same error message.

#1016 - Can't Open File: (errno: 144)
I've got an invision board forum, and today when I tried accessing parts of it I get errors saying "mySQL error: Can't open file: 'strabo_topics.MYI'. (errno: 144)" so I went into phpMyAdmin and tried to repair the table and found there were 2 othjers with the same problem and when I try to repair them I get the following: Code:

Errno: 121 On Updating Foreign Key Restraints
I'm having trouble updating the foreign key constraints in some of my junction tables, receiving an error 1005 referring to an errno 121. I searched TFM but not much help there, then searched the fora and found that this error wasn't uncommon, and that another user had exactly the same problems when trying to do exactly the same thing - see "Always get errors when updating foreign key constraints" (http://forums.mysql.com/read.php?108,37161,37161#msg-37161). Unfortunately, I couldn't see any answers to this problem in the threads I found, and one poster suggested making a bug report.

Basically, I'm trying to do what the other user was doing - to use the GUI MySQL Administrator tool to change foreign key 'on delete' and 'on update' settings in my junction tables from the default "restrict" to "cascade", so that when I delete a row in a parent table the corresponding rows in the child junction table also bite the dust. I managed to do this for one junction table, by deleting the foreign keys then re-creating them with "cascade", but ran into the 121 error when trying the same on an identical junction table. I'd be very grateful if someone could explain what's causing this error, and how I should go about changing my foreign key constraints. I don't want to have to do what the other user did, which was to drop and recreate tables, keys, and indices, and still after that s/he got no result.


Can't Create Database 'boby'. (errno: 13)
Impossible to create a database using MySQL !!!
Message : #1006 - Can't create database 'boby'. (errno: 13)

I was told :
chown mysql.mysql -R /var/lib/mysql
chmod 750 -R /var/lib/mysql

NOTHING. Absolutly impossible to create a database.

#1016 - Can't Open File: 'xx.MYI' (errno: 130)
I recently got a Database back up from one of my client. This Mysql Back up contain only frm and MYD files for each table.

Now I don't know much about storage engine and things, What I did is make an empty Database in my Mysql server on Windows XP machine, and put all files in Folder for that database....

Now I open phpMyAdmin and see that it list all the tables correctly but gives

#1016 - Can't open file: 'xxxx.MYI' (errno: 130)

where xxxx is table name I wish to open..

ERROR 1006: Can't Create Database 'X'. (errno: 13)
I am working on Mac OSX 10.2.8 with mysql 4.
I needed to change the data directory of MySQL from its original
place (where the application have to be and not the databases because
there is not enought room) to an other volume of my computer.

I made a symlink from data to data in the other volume and not anymore
as it was to var in the same volume before. I copied all files and
directories of var in this new directory -data-. I changed with mysql
mysql all this file and directories (group and owner). And I made :

create database X;
ERROR 1006: Can't create database 'X'. (errno: 13)

I hope what I explain is clear!

What did I forget ?
Do I have to put also var in this new other directory?
Do I have to reinstall completly MySQL because I corrupted to much
this application?

Mysqldump: Got Errno 27 On Write. File Too Large
I have musql 4.1.7 on Solaris 9, 64 bits and I want to mysqldump a +-4 gigas db.

The dump I want to do is from a myISAM tables databank. I used to do that dump wihtout any problem until recently while the size of the Db double (+-2 to +-4) Code:

Can't Open File: 'table.InnoDB'. (errno: 1)
I enabled/initialized innodb for my MySql database using innodb_data_file_path = ibdata1:10M:autoextend in my.cnf

i created tables.. but some tables (others are working fine) when i try to access them is giving me Can't open file: table.InnoDB'. (errno: 1).

Can't Open File: 'news.InnoDB'. (errno: 1)
I had to change some settings for my MYSQL DB.

Now i get this when i try and display a page, i cn't find a reference to this file anyway in my code. any ideas?

Error is:-

Can't open file: 'news.InnoDB'. (errno: 1) .

Can't Create Table '.hollisticdirectory#sql-70c_a.frm' Errno:150
I'm trying to create a database and implement foreign keys, when I try to create the table with the keys in place it won't create the table, if i take the constraints out then it creates fine.
I've then tried to add a foreign key using alter table and I get the message:

Error 1005(HY000)can't create table '.hollisticdirectory#sql-70c_a.frm' errno:150

I don't get whats going on? can anyone shed any light, I've followed the examples in the tutorial but can't get this to work. the alter table statement reads:

alter table practitioner add foreign key(homeaddress) references address(idaddress);

the create statements for the two tables are:

DROP TABLE IF EXISTS `hollisticdirectory`.`address`;
CREATE TABLE `hollisticdirectory`.`address` (
`idaddress` INT(10) unsigned NOT NULL AUTO_INCREMENT,
`flatNumber` VARCHAR(45) NULL,
`buildingName` VARCHAR(45) NULL,
`BuildingNumber` VARCHAR(45) NOT NULL,
`Street` VARCHAR(45) NOT NULL,
`district` VARCHAR(45) NULL,
`town` VARCHAR(45) NOT NULL,
`county` VARCHAR(45) NOT NULL,
`postcode` VARCHAR(45) NOT NULL,
`primaryTelephone` VARCHAR(45) NULL,
`contactName` VARCHAR(45) NULL,
PRIMARY KEY (`idaddress`)
)
ENGINE = InnoDB
ROW_FORMAT = Compact
CHARACTER SET utf8 COLLATE utf8_general_ci;

DROP TABLE IF EXISTS `hollisticdirectory`.`practitioner`;
CREATE TABLE `hollisticdirectory`.`practitioner` (
`practitionerId` INT(10) unsigned NOT NULL AUTO_INCREMENT,
`surname` VARCHAR(45) NOT NULL,
`forename` VARCHAR(45) NOT NULL,
`officeTelephone` VARCHAR(45) NOT NULL,
`homeTelephone` VARCHAR(45) NOT NULL,
`mobileTelephone` VARCHAR(45) NOT NULL,
`primarySpeciality` INT UNSIGNED NOT NULL,
`secondarySpeciality` INT UNSIGNED NULL,
`tertiarySpeciality` INT UNSIGNED NULL,
`homeAddress` INT NULL,
`officeAddress` INT NULL,
`contactAddress` INT UNSIGNED NOT NULL,
PRIMARY KEY (`practitionerId')
)
ENGINE = InnoDB
ROW_FORMAT = Compact
CHARACTER SET utf8 COLLATE utf8_general_ci;

hope someone can help. I'm getting short on time to get this done and can't see what I'm doing wrong? I started this using mysql workbench, but as that didn't work have been writing it myself but no joy there either!

ERROR 1135 (HY000): Can't Create A New Thread (errno 12);
I'm running MySQL 5.0.41 (Server version: 5.0.41-community-nt-log MySQL Community Edition (GPL)) on Windows Server 2003 Enterprise Edition (w/ PAE) with 16GB of RAM and I'm getting the following error when MySQL has been running for 12-24 hours (this is a productional enviroment).

ERROR 1135 (HY000): Can't create a new thread (errno 12); if you are not out of
available memory, you can consult the manual for a possible OS-dependent bug

I have more then 11GB of available RAM whenever I see this error.
Could it be that the Community Edition does not support 16GB of RAM ?
If so then what are my options?

ERROR 1005 (HY000): Can't Create Table....(errno: 150)
Does anyone know what might cause this error?

code...

Cant Find File './mysql/host.frm' (errno: 13)
I have had this DB running now for about 6 Months. I reboot it last nite and now the mysql db won't start. my log says:

" /usr/libexec/mysqld: Can't find file: './mysql/host.frm'
(errno:13) "
 
everything I have been researching leads back to file permissions. And I already chmod on them...

Now: #1016 - Can't Open File: 'account.ibd' (errno: 1)
My server got hit with the recient Plesk virus problem and we ended up having to reinstall the server from scratch.Everything else is setup and working except the databases.I have the FRM files and I was able to copy them to the new server and they show up in phpmyadmin, but anytime I try to access them it gives me errors.

#1016 - Can't open file: 'account.ibd' (errno: 1)

I have 1 1/2 years worth of data on one site and 80 hours worth of development on my newest project.not to mention all the little stuff.I cannot afford to lose this data.

1016 - Can't Open File: 'sessions.MYD'. (errno: 145)
Using MySQL 4.1.9, I got my 'sessions' table corruputed:
---------
1016 - Can't open file: 'sessions.MYD'. (errno: 145)
---------

In order to fix it, I removed it, and created a new one. Now I want to know why
I suffered this problem, since I think it's a common problem with session tables
on websites.

ERROR 1005: Can't Create Table './MRI/test.frm' (errno: 150
I am getting the above error. I have created 2 tables:

categories: id, code varchar(50) not null, name, primary key (code)) type=InnoDB;

quest: id, code varchar(50) not null, name, primary key (code), index (code), foreign key (code) references categories (code)) type=InnoDB;

When I try n create ques table, it gives me an error.

ERROR 1017 (HY000): Can't Find File: './media_data/logfile.frm' (errno: 13)
I am having the problem of select data from tables in a database(s). The message we get is:

ERROR 1017 (HY000): Can't find file: './media_data/logfile.frm' (errno: 13)

We re-booted the machine (Suse Linux) and restarted the mysql server using:

mysqld_safe &

We verified that the file being pointed out in the error message actually exists. The directory and file has 777 as the permissions.

We verified that the contents in my.cnf has not changed.

We can do show tables, show databases after logging into mysql as follows:

mysql -u root -p

mysql> show databases; (** WORKS **)
mysql> use pammi; (** WORKS **)
mysql> select * from logfile;

ERROR 1017 (HY000): Can't find file: './media_data/logfile.frm' (errno: 13)

Got Error 1016 Cannot Open File Acounts.idb' &lt;errno:1 WHEN USEING LOCK TABLES
got error 1016 cannot open file acounts.idb' <errno:1 WHEN USEING LOCK TABLES
i get this error as i am instaling information to my database

any ideas on how to fix this?

ERROR 1010 (HY000): Error Dropping Database (can't Rmdir '.a', Errno: 41)
I am using MySql 5.0.21-community Edition for widows XP. I can successfully connect to the MySql Server as a root and create a database 'a'. Which creates a directory 'a' under my mysqldata directory with a single file 'db.opt'. Now dropping the database 'a' gives the following error

ERROR 1010 (HY000): Error dropping database (can't rmdir '.a', errno: 41)

The directory mysqldataa does not have any other files or hidden files. The commands I have executed are:

------------
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 6 to server version: 5.0.21-community-log

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> create database a;
Query OK, 1 row affected (0.09 sec)

mysql> drop database a;
ERROR 1010 (HY000): Error dropping database (can't rmdir '.a', errno: 41)
mysql>
---------

I have searched web, lists, bugs and could not find any.

ERROR 1005: Can't Create Table './db/table.frm' (errno: 150)
I found the key to solve this problem in:

http://darkstar.ist.utl.pt/mysql/do...onstraints.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 info about the error description if you have root access
by typing
mysql> show innodb status;

LATEST FOREIGN KEY ERROR
------------------------
030807 1:27:10 Error in foreign key constraint of table database/table:
There is no index in the table database/table where the columns appear
as the first columns. Constraint:
foreign key (key) references database.table(key) on delete cascade)
type=innodb

also if you type:
shell> perror 150

you obtain:
150 = Foreign key constraint is incorrectly formed

I hope this to be enough...


Copyright © 2005-08 www.BigResource.com, All rights reserved