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




Repair Message


Running MySQL 4.0. I had an error in my database that wouldn't let me run selects (it said error 127 from table handler). I ran repair on the table and it fixed it dropping one row. I was just wondering what the meaning of the repair message is so that I can try to avoid the error in the future.

Found link that points at 11548 (outside data file) at 10152.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Repair A Db ?
when I execute from command line (linux centos server)

# mysqlcheck -o chatspa_main

chatspa_main.BAmigMSG
error : Can't find file: 'BAmigMSG.MYI' (errno: 2)
chatspa_main.BuscaAmigos
error : Can't find file: 'BuscaAmigos.MYI' (errno: 2)
chatspa_main.CLKEXclkcontrol OK
chatspa_main.CLKEXmain OK
chatspa_main.CLKEXstats OK
chatspa_main.CTICelebPhotos
error : Can't find file: 'CTICelebPhotos.MYI' (errno: 2)
chatspa_main.CTICelebrities
error : Can't find file: 'CTICelebrities.MYI' (errno: 2)
chatspa_main.ChatSpain_Users OK
chatspa_main.MCmain
error : Can't find file: 'MCmain.MYI' (errno: 2)
chatspa_main.MCvotecontrol
error : Can't find file: 'MCvotecontrol.MYI' (errno: 2)
chatspa_main.phpCardData
error : Can't find file: 'phpCardData.MYI' (errno: 2)
chatspa_main.phpCardUsers
error : Can't find file: 'phpCardUsers.MYI' (errno: 2)
chatspa_main.phpCatData
error : Can't find file: 'phpCatData.MYI' (errno: 2)

How to fix/remove these "Can't find file" errors please ?

Repair Table
Is there a way to issue a "REPAIR TABLE table_name" command to all
tables at once? Something like "REPAIR TABLE *"

Repair By Sorting
I have an application which uses MySQL to manipulate large amounts of data for short periods of time. The data set contains 13 columns each of which is indexed and typically about 30 Million rows.

I create a new table, load the data in to the table using load local infile from a CSV and then add indexes to each of the columns; the columns are a combination of integer, date and text. The text columns have a simple index and a full text index.

I need to be able to sort on each column (in a grid - I use DevExpress) and search on the textual fields.

I appreciate that getting the data into MySQL and creating the indexes is never going to be quick but I need to optimise this process as much as possible. Typically a data set would be loaded and viewed for a few hours and then a new dataset loaded and the process repeated.

When the index process is underway I get the above state displayed by show processlist and wondered if this is a problem. The whole load/index process takes about an hour and I would like to improve on this if I can.

I am also looking for suggestions as to how I may be able to best optimise this.

I use a dedicated server and the MyISAM engine.

Cannot Repair Tables
I lost my developers and an office i do hardware support for is down. I can do the basics, BUT checking and repairing the tables dont seem to work. I need some better direction. Here is a link to a text file that shows ALL of the errors. Can someone please reply with answers or even a direction to go. The is NO backup of the database and the data is vital.

http://members.planetwebdev.com/web/admin/mysql/report.txt

if "holy $#%@%#$" is the only answer you have. Please spare me your comments.

REPAIR TABLE
Can REPAIR TABLE be used for rebuilding indexes on an InnoDB table? The only documentation I have seen is for MyIsam. There are 30 million records which has taken me 9 days to populate. I've made a backup but want to make sure this will work before I try it.

Keycache Repair
I ran the following querry on a large database:
ALTER TABLE vbpost ADD FULLTEXT INDEX (title,pagetext).
The querry is taking a very long time to execute (the database is also very large). I logged in with another shell and ran showprocess. It showed the querry in state keycache repair.
Do I need to do anything at this point? Is there a way to tell if the querry is still running?


REPAIR Repeatedly
I'm running MySQL 4.018 on Fedora. I've got a few tables with more than 1M records, and if a larger number of deletes is thrown at them or a MYSQLDUMP is attempted, I get a "got error 127 ...". I've run "REPAIR", MYSQLCHECK and every other repair possibility I could find. The tables are supposedly ok after the repair operation, and can be queried normally. As soon as I try to run a MYSQLDUMP or a large number of deletes, I get the corrupted tables again.?

Can't Repair A Table
It seems I have a corrupt table and have tried the REPAIR TABLE command but during the operation I get this return.
mysql> REPAIR TABLE users;
+-----------+--------+----------+-------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+-----------+--------+----------+-------------------------------------------+
| sdc.users | repair | error | Can't open file: 'users.MYD'. (errno: -1) |
+-----------+--------+----------+-------------------------------------------+
1 row in set (0.00 sec)

Mysql Crash/repair
I've got a couple of directory sites that looks like somehow something's been deleted or crashed (the directory isn't showing any listings).

I had a look in the mysql directory, and all I see are a bunch of .frm files. I don't see any MYI or MYD files.

Is there any way to recover or repair? I'm assuming I need those files, and that the lack of them is what's causing my problems. We've done a couple of things lately that may have caused the problem like a server move and a hard reset.

Optimize Or Repair Db Tables
I bought a dating script online and been running it for 1 year, has about 1500 profiles, but the site is too slow now. Not about the host because I have godaddy host.
When I ask the script owner, they told me that I need to optimize the db to make tables indexed.
I already tried to go to phpmyadmin, click on all tables, then, select OPTIMIZE table from drop-down list,.... but it does not help. The site is still running too slow to load. I am using high speed intenet.

Repair Corrupt Tables
I have a couple of tables in a database the give me the following error when I try to open them:
thanks!
'can't open file: 'clinch_a.ibd (errno:1)'
What can I do to fix this problem.

Repair Corrupt Table
I am using xoops (a CMS) and MySQL on a website with not so much traffic. I am using "phpMyAdmin - 2.8.0.3-Debian-1" with "MySQL - 5.0.21-Debian_3-log" on a Debian unstable.
Three tables have gotten corrupt recently and won't let themselves be repaired. When I use repair it says status OK, but if I try to delete a record or if I analyze the table again, it says that the table was reported as crashed and that it needed a repair. The only useful message I get, if I analyze the table is about wrong key at page 111616.

Server To Repair Mysql DB
I've got a corrupt 8GB mysql table and am obliged to use
myisamchk -r -o -f --safe-recover

But this is taking immensely long time, and is going slower and slower
The time it would take to repair 2.7 million rows would be far too much than I can make my client wait.is there somewhere a service where I could sync a copy of the db files under /var/lib/mysql/, repair it on their powerful server, and bring it back home?

Repair Mysql Tables
is there some code to repair all the tables in my database in one go? instead of typing in "Repair Table <TableName>;" many times.

Auto Repair Tables
This is my first post on this board.
Well.. now to my question.
I´m running MySQL 4.1.11 on a linux-mandriva server.
Some days, there are a few tables in on of my databases that gets "corrupted" for some strange reason.
And this always happends, when i´m NOT around to repair the tables.
So.. i was wondering if there is some kind of php-script or program, that could repair the tables automaticly

ANALYZE, OPTIMIZE, CHECK, REPAIR
when to use the ANALYZE, OPTIMIZE, CHECK, REPAIR commands. From what I can tell, ANALYZE and OPTIMIZE are for making the table optimal to increase performance. CHECK and REPAIR are used to find & fix corruptions. ANAYLZE takes a lot less time to run than CHECK.

The questions I have are:

1. What is the general rule of thumb on regular (daily) maintenance of a MySQL DB?

2. Will ANALYZE report table corruptions? If so, I don't even need to call CHECK, I can directly go
do REPAIR?

3. If the anwer to #2 is no, meaning I have to run CHECK TABLE, should I separate the optimization exercises from the find-corruption-and-repair routines?

Indexing Table Forces Repair By Sorting
I have a problem whereby i am loading a large table into MySQL - approx 3 million rows

I then create indexes on most of the columns including normal and full text indexes on certain columns that I need to sort and search.

The indexing operation takes an age (about 7-8 mins) on each column, whether it is a normal or fulltext index. Example:

mysql> show full processlist;
| Id | User | Host | db | Command | Time | State | Info
|
| 1196 | root | PAULS:2078 | registries | Query | 457 | Repair by sorting | CREATE INDEX VALNAMEidx ON FULLTAB_113 (VALNAME
(64)) |
5 rows in set (0.01 sec)

I have tried SET MYISAM_SORT_BUFFER_SIZE=1024000000 - this has no affect

I have also tried creating the indexes when I create the table but I get the same thing.

The tables are populated by load data local infile and no additional rows are added once populated I am running MySQL 5.0.11 on a dual core pentium 2.4Ghz with 2GB RAM Any ideas how I can speed this up?

Mysqlcheck: Table Is Marked As Crashed And Last Repair Failed
I'm using the command "mysqlcheck --all-databases --auto-repair --silent"
and I see these warnings and errors (listed below) on a daily occurrence.
What could cause these indexes to be out of order? Another thing I don't
understand is why an increase in the number rows constitutes a warning?

Hoping to here from MySQL users who have came across this. I'm using the
MyISAM storage engine and MySQL 4.1.11 on Red Hat Enterprise Linux.

MYSQL Database Alteration, Repair And Restore Takes Huge Time
I am trying to run alteration queries on one of my mysql tables which has more then 22,00,0000 lakh records. Its been 23 hours and the process is still running (I have to close all the sites running on server due to same).

My server specifications:
Red Hat 9.0
Pentium 4 3.0 GHz
2 GB Ram, Burst RAM 5 GB
Running webserver, mail server as well.

Is there a way I can view the minute process details, as what table record is being updated ?

SQM Message
What database is all about.

Need Help With Error Message
I'm getting this error message -- can someone spot the error? I'm using 5.0.

CREATE TABLE saAuthorizations(
authID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT ,
insuranceID INTEGER UNSIGNED NOT NULL ,
authNumber VARCHAR NULL ,
startDate DATE NULL ,
endDate DATE NULL ,
totalNumOfSessions TINYINT UNSIGNED NULL ,
numSessionsRemaining TINYINT UNSIGNED NULL ,
address1 VARCHAR NULL ,
address2 VARCHAR NULL ,
city VARCHAR NULL ,
state VARCHAR NULL ,
zip VARCHAR NULL ,
phone1 VARCHAR NULL ,
phone2 VARCHAR NULL ,
fax VARCHAR NULL ,
notes TEXT NULL ,
PRIMARY KEY ( authID )
);

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL,
startDate DATE NULL,
endDate DATE NULL,
totalNumOfSessions TINYIN' at line 4

Collate Message
I am getting the following error message when I am trying to load a script ‘ERROR 1064 (00000) at line 20: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate latin1_bin default NULL ) ENGINE=MyISAM DEFAULT CHARSET'

I am using 4.0.18 do I need to modify the script?

ODBC Message
I have a mysql 3.23.49. It's working on Linux Red Hat, all our application run in Windows XP connecting through ODBC driver.

We've been receiving some warning messages recently, but that application run more than 3 years and we'd never received that message:

Warning: Lost connection to MySQL server during query

The computer has 4 cpu (1.5Mhz), 2G RAM and free space in Hard Disk, it's only database server.

Where can I start analize from?
The top command, most of time show mysql working with 100% cpu.

Error Message
I am trying to install MYSQL 4.1 and I keep getting the message "Resource
(messagedlg.confirmation) not found." Installation does not proceed. What
does this mean and how do I correct it?

Error Message
I'm having a great deal of unsuccess with ascertaining what could be causing the following error when executing a stored procedure. Here's the error message:

"#42000 OUT or INOUT argument <param#> for routine <procname> is not a variable"

I've got some stored procs with OUT params and they do not cause problems. But I have one stored proc that does. Could I have reached a limit of some kind with the number of parameters I'm using? I have 35 parameters. 34 are input only, 1 is OUT. If I comment out the single OUT parameter in the procedure's declaration, there are no errors on execution. But the OUT parameter in question is there to return the LAST_INSERT_ID() of an insertion that occurs inside the stored proc. I NEED that value so I can do other things with it elsewhere.

This error occurs whether or not I assign a value to the OUT parameter.

Anyone have a clue what's wrong here? Is it me, or have I discovered another bug?

Prompt Message
how to make alert message?
eg:
if (false) {
<- alert message ->
} else {
<- something ->
}
what coding to prompt alert message to user?

Error Message During Set Up
I've gotten the fo;;owing message while trying to set up MYSQL on a
Powerbook on MacOSX:

/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock'
(2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
I installed Startup, Debug, Max, and Standard in that order.

Error Message
I am getting this message on my site "Table 'theweb_joomla1.jos_joomla_section' doesn't exist SQL=INSERT IGNOR INTO jos_joomla_sections (sectionid, commented, locked) SELECT id, 1,0 FROM jos_sections"How can I fix this problem? I know it tells me in the instructions but I am not savy enough to understand it.

Error Message
I cant seem to get this to work.I am trying to install a cart, and created a database "cart". I have then added a user and password. But now I am getting

Warning: mysql_connect(): Access denied for user: 'brooke@localhost' (Using password: YES) in /home/witha/public_html/store/stconfig.php on line 15
Unable to connect to database

Message From Server
I'm developing a web application using the struts framework and mysql 4.0.24_Debian-10 on tomcat 5.5.
Trying to connect to mysql server I got the following error on application(tomcat) startup:
>>>>>
Cannot create PoolableConnectionFactory (Data source rejected establishment of connection, message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
<<<<<
WHY?
I've been searching on previous threads but couldn't find anything matching this situation.


Select Last Message
I'm working on an article-system, (width PHP, Mysql), where I want to get the latest commments to an article.
I have to tables, artikler and kommentarer

$comment = mysql_query("SELECT `artikler`.`id`, LEFT(`kommentarer`.`kommentar`, 40) as `text` FROM `artikler`, `kommentarer` WHERE `artikler`.`id` = `kommentarer`.`id_ref` GROUP BY `kommentarer`.`id_ref` ORDER BY `kommentarer`.`dato` DESC LIMIT 0, 5") or die (mysql_error());

"dato" is a datetime field

But this query shows the first comment to an article.How do I get the latest?

Error 2003 Message
I am getting an Error 2003: Can't connect to MySQL server on 'machine' (113) message when trying to connect remotely to a MySQL database on Linux. THis is using this command mysql -h machine -u web -p

I can connect to the database OK on the local machine using the same command. The user I set up like this with permissions -

GRANT SELECT ON database_name.* TO 'web'@'%' IDENTIFIED BY "password";
Has anyone any ideas why I can't connect remotely.

ERROR Message 1226 What Do I Do?
I am new to the MySQL world..... and well I have a problem I changed the "Max_questions" to 10...and in doing so I am now locked out of everything...what do I do? The error just says Max_questions reponse = 10 (1226)

Need Help Understanding Error Message
I'm not terribly experienced with databases. Can someone tell me what's wrong with this query? I've included the error message below - I'm not sure what it's telling me or how I fix it.

CREATE TABLE saClient(
clientID INTEGER UNSIGNED NOT NULL ,
firstName VARCHAR NOT NULL AUTO_INCREMENT ,
middleName VARCHAR NULL ,
lastName VARCHAR NULL ,
address1 VARCHAR NULL ,
address2 VARCHAR NULL ,
city VARCHAR NULL ,
state VARCHAR NULL ,
zip VARCHAR NULL ,
birthday VARCHAR NULL ,
ssn VARCHAR NULL ,
fax VARCHAR NULL ,
email1 VARCHAR NULL ,
email2 VARCHAR NULL ,
phoneCell VARCHAR NULL ,
phoneHome VARCHAR NULL ,
phoneWork VARCHAR NULL ,
phoneOther VARCHAR NULL ,
emergContactName VARCHAR NULL ,
emergContactPhone1 VARCHAR NULL ,
emergContactPhone2 VARCHAR NULL ,
emergContactRelationship VARCHAR NULL ,
sex TINYINT UNSIGNED NULL ,
notes TEXT NULL ,
STATUS TINYINT UNSIGNED NULL ,
PRIMARY KEY ( clientID )
)

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL AUTO_INCREMENT,
middleName VARCHAR NULL,
lastName VARCHAR NULL,
' at line 3

Error Message: C:mysqinshareenglisherrmsg.sys
[color=blue]
>Trying to start first time using command:
> C:mysqlinmysqld --standalone
>
> Yields this error message: Can't find
> messagefile'C:mysqinshareenglisherrmsg.sys' aborting
>
> Now in C:mysqlshareenglish there is an errmsg.sys[/color]

Do you have any language=C:/mysqin/share/english/ entry in the my.ini?
--
Thanks for the Reply ...
It sounds like I need to add:..................

Socket Error Message
I'm getting an error message I don't understand:

"Could not connect to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"

Can anyone shed any light on this error for me?

How To Print Message In MySQL
how can i print the results to the output in procedures. do we have any function like dbms_output.put_line in Oracle.

Error Message - 1251
I've recently upgraded MySQL to 4.1 and am tryingto get an old PHP based website to work and I'm receiving the message:

Login Validation Failed: 1251: Client does not support authentication protocol requested by server; consider upgrading MySQL client - Make sure your Username, password and hostname are correct.
"
Searching this site for information on how to solve my problem a reference indicates that I should -

"Upgrade all client programs to use a 4.1.1 or newer client library. When connecting
to the server with a pre-4.1 client program"

What does "pre-4.1 client program" mean? Is this referring to PHP?

MySql Error Message
I have a perl application. I sometimes get the following error:

Can't connect to MySQL server on '127.0.0.1' (4)

What means the (4). I can't find any answers. I know (111) is when the server isn't running !!!

Get A Meaningful Error Message
I have msAccess clients running smoothly with MySQL backend via ODBC.

When I test the execution of various invalid sql statements the only error received is 3146 ODBC call failed.

Is it possible to query MySQL to discover more detail regarding the last error and return a more meaningful message?

Commands Out Of Sync Message
I'm having a problem wherein I unexpectedly receive a "Commands out of sync" error message. I'm using the C API for MySQL 4.0.21 under Linux. The basic flow of my program looks something like this (parentheses indicate the function that the commands are taking place in): Code:

Error Message 1062
i have just restored a backup of all me databases after i messed things up with my website, anyways the back up went ok but i got the following errors

ERROR 1062 at line 241: Duplicate entry '179' for key 1
ERROR 1062 at line 242: Duplicate entry '180' for key 1
ERROR 1062 at line 243: Duplicate entry '181' for key 1
ERROR 1062 at line 244: Duplicate entry '182' for key 1
ERROR 1062 at line 245: Duplicate entry '183' for key 1
ERROR 1062 at line 246: Duplicate entry '184' for key 1
ERROR 1062 at line 247: Duplicate entry '185' for key 1
ERROR 1062 at line 248: Duplicate entry '186' for key 1
ERROR 1062 at line 249: Duplicate entry '187' for key 1
ERROR 1062 at line 250: Duplicate entry '188' for key 1

i am having a couple minor prob with my site and thoought it may be linked to this.
explain what this means and how to correct it.

Error Message Language
I have two problems about the Error Message Language:

1. If I set language directory path in MySQL Administrator, then nothing is happen: language remains English and, after restart MySQL Administrator, path writen in Startup Veriables -> Advanced -> Localization -> Language is changed (some characters missing).

2. When I change errmsg.txt and want to generate new errmsg.sys with "comp_err errmsg.txt errmsg.sys" command (as HELP guides), system returns error: "'comp_err' is not recognized as an internal or external command,operable program or batch file."

Getting Value Replacement For %s In Error Message
when database engine product some error i can get it

mysql_errno -- Returns the numerical value of the error message from previous MySQL operation
mysql_error -- Returns the text of the error message from previous MySQL operation

Example:
Error: 1062 SQLSTATE: 23000 (ER_DUP_ENTRY)
Message: Duplicate entry '%s' for key %d

how can i get value, what is using as replacement %d for example or where are stored values for replacement in error mesages? Have access to it?

Meaningful Error Message
I have msAccess clients running smoothly with MySQL backend via ODBC.
When I test the execution of various invalid sql statements the only error received is 3146 'ODBC--call failed’.
Is it possible to query MySQL to discover more detail regarding the last error and return a more meaningful message?

Code Does Not Execute, But No Error Message Given
I used the info from Kevin's Database Driven Website book to construct the following code. It displays without errors. But when I enter info, the info is not entered into the database, and no error message indicates that anything went wrong. When I query the database directly, no data had been entered.
I need another pair of eyes to look at this and tell me where I went wrong.



Form Submission Error Message
What could be the source of this error message
Error : Duplicate entry &#390;' for key 1
I get when i fill a php/mysql form?

I Get Ignoring Query To Other Database Message
Does anyone know why MySQL Monitor generates this message:

Console: Ignoring Query to other Database

I get this when I try to do anything but the "use databasename" command. example:

Console: use users>create table person1 .....

Error Message MYODBCConfig, When Trying To Connect
I am attempting to connect to a MySQL file through Excel. To do this I have installed the MySQL 3.51 driver and gone through the steps to Add a Data Source but come up empty handed.

I get this error:
"could not find driver {MySQL ODBC 3.51 Driver} in system information"

I have gone through the setup through the ODBC Data Source Administrator. I have tried adding this through the User DSN and the System DSN and run into the same error.

So, here are my setup inputs.

In the Add Data Source Name Dialog Box:

Data Source Name: Myodbc

(I have left all the following boxes blank, and no luck and so now I am putting some input in them just to see if a positive outcome is possible, but the results are the same)

Description: Online Store
Server: localhost
User:
Password:
Database: (click the dropdown box and I get an error immediately, either access denied or cannot connect to MySQL sever on localhost.

I have pinged my localhost and pinged 127.0.0.1 and both are successful reaching the destination.
I have also tried installing this on a second computer and am unsuccessful too.
Machine 1 is Windows 2000 with Excel 2002 and Machine 2 is Windows XP with Excel 2003.


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