Bluehost.com Web Hosting $6.95

retrieving table data from MySQL

This is a discussion on retrieving table data from MySQL within the MySQL Database forums, part of the Database Forums category; Hi I have MySQL Server 5.0 on my machine and I am trying to retrieve data stored in a ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2007
Navodit
 
Posts: n/a
Default retrieving table data from MySQL

Hi

I have MySQL Server 5.0 on my machine and I am trying to retrieve data
stored in a table. However if I try doing a mysqldump on the database where
the table is stored then the MySQL server crashes. The table has around 10
fields in the table. So I am able to execute the following commands
successfully:

show columns from table x; (assuming table name is x)
select field1 from x;
select field2 from x;
select field3 from x;
select field4 from x;
select field10 from x;

However the following commands cause the server to crash:

select * from x;
select field5 from x;
select field6 from x;
select field7 from x;
select field8 from x;
select field9 from x;

So basically I have been able to retrieve the schema for the table and the
entries for the fields (field1,field2,field3,field4,field10) but I am not
able to retrieve the data in the other fields. Therefore my question is:

Is there a way that I can backup/dump data in this table? A look at the logs
revealed the following error:

InnoDB: Error in pages 609 and 610 of index PRIMARY of table mt/mt_entry
InnoDB: records in the wrong order on adjacent pages

Presumably data has been entered in the wrong format due to poor design of
the database schema. But is there a workaround to this? Any help/hints would
be highly appreciated. Thanks


Reply With Quote
  #2 (permalink)  
Old 03-01-2007
Jerry Stuckle
 
Posts: n/a
Default Re: retrieving table data from MySQL

Navodit wrote:
> Hi
>
> I have MySQL Server 5.0 on my machine and I am trying to retrieve data
> stored in a table. However if I try doing a mysqldump on the database where
> the table is stored then the MySQL server crashes. The table has around 10
> fields in the table. So I am able to execute the following commands
> successfully:
>
> show columns from table x; (assuming table name is x)
> select field1 from x;
> select field2 from x;
> select field3 from x;
> select field4 from x;
> select field10 from x;
>
> However the following commands cause the server to crash:
>
> select * from x;
> select field5 from x;
> select field6 from x;
> select field7 from x;
> select field8 from x;
> select field9 from x;
>
> So basically I have been able to retrieve the schema for the table and the
> entries for the fields (field1,field2,field3,field4,field10) but I am not
> able to retrieve the data in the other fields. Therefore my question is:
>
> Is there a way that I can backup/dump data in this table? A look at the logs
> revealed the following error:
>
> InnoDB: Error in pages 609 and 610 of index PRIMARY of table mt/mt_entry
> InnoDB: records in the wrong order on adjacent pages
>
> Presumably data has been entered in the wrong format due to poor design of
> the database schema. But is there a workaround to this? Any help/hints would
> be highly appreciated. Thanks
>
>


Actually, this looks more like the file itself has been corrupted. Even
entering data in the wrong format won't give this error.

I don't know of any way to recover from this type of problem other than
to restore from backup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #3 (permalink)  
Old 03-01-2007
Navodit
 
Posts: n/a
Default Re: retrieving table data from MySQL


"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:TbudnexSB7PsQ3vYnZ2dnUVZ_tTinZ2d@comcast.com. ..
> Navodit wrote:
>> Hi
>>
>> I have MySQL Server 5.0 on my machine and I am trying to retrieve data
>> stored in a table. However if I try doing a mysqldump on the database
>> where the table is stored then the MySQL server crashes. The table has
>> around 10 fields in the table. So I am able to execute the following
>> commands successfully:
>>
>> show columns from table x; (assuming table name is x)
>> select field1 from x;
>> select field2 from x;
>> select field3 from x;
>> select field4 from x;
>> select field10 from x;
>>
>> However the following commands cause the server to crash:
>>
>> select * from x;
>> select field5 from x;
>> select field6 from x;
>> select field7 from x;
>> select field8 from x;
>> select field9 from x;
>>
>> So basically I have been able to retrieve the schema for the table and
>> the entries for the fields (field1,field2,field3,field4,field10) but I am
>> not able to retrieve the data in the other fields. Therefore my question
>> is:
>>
>> Is there a way that I can backup/dump data in this table? A look at the
>> logs revealed the following error:
>>
>> InnoDB: Error in pages 609 and 610 of index PRIMARY of table mt/mt_entry
>> InnoDB: records in the wrong order on adjacent pages
>>
>> Presumably data has been entered in the wrong format due to poor design
>> of the database schema. But is there a workaround to this? Any help/hints
>> would be highly appreciated. Thanks
>>
>>

>
> Actually, this looks more like the file itself has been corrupted. Even
> entering data in the wrong format won't give this error.
>
> I don't know of any way to recover from this type of problem other than to
> restore from backup.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================


Can you please elaborate on how to "restore from backup"? I am not sure how
to go about that since I am not able to take backup via mysqldump. Is there
another way to take the backup?


Reply With Quote
  #4 (permalink)  
Old 03-01-2007
Jerry Stuckle
 
Posts: n/a
Default Re: retrieving table data from MySQL

Navodit wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:TbudnexSB7PsQ3vYnZ2dnUVZ_tTinZ2d@comcast.com. ..
>> Navodit wrote:
>>> Hi
>>>
>>> I have MySQL Server 5.0 on my machine and I am trying to retrieve data
>>> stored in a table. However if I try doing a mysqldump on the database
>>> where the table is stored then the MySQL server crashes. The table has
>>> around 10 fields in the table. So I am able to execute the following
>>> commands successfully:
>>>
>>> show columns from table x; (assuming table name is x)
>>> select field1 from x;
>>> select field2 from x;
>>> select field3 from x;
>>> select field4 from x;
>>> select field10 from x;
>>>
>>> However the following commands cause the server to crash:
>>>
>>> select * from x;
>>> select field5 from x;
>>> select field6 from x;
>>> select field7 from x;
>>> select field8 from x;
>>> select field9 from x;
>>>
>>> So basically I have been able to retrieve the schema for the table and
>>> the entries for the fields (field1,field2,field3,field4,field10) but I am
>>> not able to retrieve the data in the other fields. Therefore my question
>>> is:
>>>
>>> Is there a way that I can backup/dump data in this table? A look at the
>>> logs revealed the following error:
>>>
>>> InnoDB: Error in pages 609 and 610 of index PRIMARY of table mt/mt_entry
>>> InnoDB: records in the wrong order on adjacent pages
>>>
>>> Presumably data has been entered in the wrong format due to poor design
>>> of the database schema. But is there a workaround to this? Any help/hints
>>> would be highly appreciated. Thanks
>>>
>>>

>> Actually, this looks more like the file itself has been corrupted. Even
>> entering data in the wrong format won't give this error.
>>
>> I don't know of any way to recover from this type of problem other than to
>> restore from backup.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstucklex@attglobal.net
>> ==================

>
> Can you please elaborate on how to "restore from backup"? I am not sure how
> to go about that since I am not able to take backup via mysqldump. Is there
> another way to take the backup?
>
>


No, you'd have to restore from a *previous backup* - one taken before
the problem occurred.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #5 (permalink)  
Old 03-01-2007
Brian Wakem
 
Posts: n/a
Default Re: retrieving table data from MySQL

Navodit wrote:

> Hi
>
> I have MySQL Server 5.0 on my machine and I am trying to retrieve data
> stored in a table. However if I try doing a mysqldump on the database
> where the table is stored then the MySQL server crashes. The table has
> around 10 fields in the table. So I am able to execute the following
> commands successfully:
>
> show columns from table x; (assuming table name is x)
> select field1 from x;
> select field2 from x;
> select field3 from x;
> select field4 from x;
> select field10 from x;
>
> However the following commands cause the server to crash:
>
> select * from x;
> select field5 from x;
> select field6 from x;
> select field7 from x;
> select field8 from x;
> select field9 from x;
>
> So basically I have been able to retrieve the schema for the table and the
> entries for the fields (field1,field2,field3,field4,field10) but I am not
> able to retrieve the data in the other fields. Therefore my question is:
>
> Is there a way that I can backup/dump data in this table? A look at the
> logs revealed the following error:
>
> InnoDB: Error in pages 609 and 610 of index PRIMARY of table mt/mt_entry
> InnoDB: records in the wrong order on adjacent pages
>
> Presumably data has been entered in the wrong format due to poor design of
> the database schema. But is there a workaround to this? Any help/hints
> would be highly appreciated. Thanks



Have you tried REPAIRing the table?


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
Reply With Quote
  #6 (permalink)  
Old 03-01-2007
Navodit
 
Posts: n/a
Default Re: retrieving table data from MySQL


"Brian Wakem" <no@email.com> wrote in message
news:54oigaF20lptrU1@mid.individual.net...
> Navodit wrote:
>
>> Hi
>>
>> I have MySQL Server 5.0 on my machine and I am trying to retrieve data
>> stored in a table. However if I try doing a mysqldump on the database
>> where the table is stored then the MySQL server crashes. The table has
>> around 10 fields in the table. So I am able to execute the following
>> commands successfully:
>>
>> show columns from table x; (assuming table name is x)
>> select field1 from x;
>> select field2 from x;
>> select field3 from x;
>> select field4 from x;
>> select field10 from x;
>>
>> However the following commands cause the server to crash:
>>
>> select * from x;
>> select field5 from x;
>> select field6 from x;
>> select field7 from x;
>> select field8 from x;
>> select field9 from x;
>>
>> So basically I have been able to retrieve the schema for the table and
>> the
>> entries for the fields (field1,field2,field3,field4,field10) but I am not
>> able to retrieve the data in the other fields. Therefore my question is:
>>
>> Is there a way that I can backup/dump data in this table? A look at the
>> logs revealed the following error:
>>
>> InnoDB: Error in pages 609 and 610 of index PRIMARY of table mt/mt_entry
>> InnoDB: records in the wrong order on adjacent pages
>>
>> Presumably data has been entered in the wrong format due to poor design
>> of
>> the database schema. But is there a workaround to this? Any help/hints
>> would be highly appreciated. Thanks

>
>
> Have you tried REPAIRing the table?
>
>
> --
> Brian Wakem
> Email: http://homepage.ntlworld.com/b.wakem/myemail.png


The table is an InnoDB table and not ISAM so I am not sure if this can be
done. Any ideas how to repair InnoDB tables? Thanks


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0