MySQL Forums
Forum List  »  General

Extracting x no. of Rows from Table using SQL syntax.
Posted by: drj201
Date: November 23, 2004 04:08AM

Hello all!

I hope you can help.

I have an IPB1.2 forum and i wish to back up the database. As i wish to upgrade this to a vBulletin forum.

I do not have shell access to my server so the only option i have is to back up the MySQL database using phpmyadmin. All works fine for all tables except the "posts" table which sizes about 20MB. Trying to dump this table always results in a Server Timeout. SO...

Can i run an SQL query that will dump an x number of rows at a time. For example i will back up rows say 1-500 and then 501-1000 etc.

Then i can run the SQL queries one at a time, hopefully avoiding any timeouts.

Hope that long babble made some sense to some of you! Can it be done?

The resulting dump for x rows will need to include the INSERT INTO etc like a normal backup.

Thanks in advance.

Options: ReplyQuote


Subject
Written By
Posted
Extracting x no. of Rows from Table using SQL syntax.
November 23, 2004 04:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.