GetDotted Domains

Viewing Thread:
"Reindex MySQL table"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sun 27/09/09 at 23:01
Regular
Posts: 595
Due to deletes and adds, the record id in one of my tables now starts at 2 and ends at 453. I think there are 449 physical records in the table.

How do I resync the index (reindex it)?

Neil
Mon 28/09/09 at 00:20
Regular
Posts: 595
Good point.

I'm a MySQL newbie(ish).

N.
Mon 28/09/09 at 00:05
Regular
"Devil in disguise"
Posts: 3,151
can always do

select count(id) from mytable
Sun 27/09/09 at 23:55
Regular
Posts: 595
Well the (table) record id in the site is a quick way of seeing how many physical records (tunes) I have listed.

I'm selling my vinyl.

N.
Sun 27/09/09 at 23:21
Regular
"Devil in disguise"
Posts: 3,151
All you can do is create specific queries to remove the gaps. eg "update mytable set id=id-1" and so on. Of course if the id is used in other tables, you risk breaking relationships by doing so.

So it does beg the question, why you care about it.
Sun 27/09/09 at 23:01
Regular
Posts: 595
Due to deletes and adds, the record id in one of my tables now starts at 2 and ends at 453. I think there are 449 physical records in the table.

How do I resync the index (reindex it)?

Neil

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

First Class!
I feel that your service on this occasion was absolutely first class - a model of excellence. After this, I hope to stay with Freeola for a long time!
Easy and free service!
I think it's fab that you provide an easy-to-follow service, and even better that it's free...!
Cerrie

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.