Author Topic: How can I change volume of 'next autoindex' in MySQL for 4images_images tab  (Read 7110 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
I add and delete many pictures, and now I have 1000+ all together, but image_id increasing from 2000+ already. is there a way to change that number from MySQL command?
I'm using phpMyAdmin to work with MySQL, but there is no way I can fix it if I dont know the command or whatever.
can someone help me?

P.S. I fully understand that this can make a mess.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
How can I change volume of 'next autoindex' in MySQL for 4im
« Reply #1 on: October 16, 2002, 08:30:49 AM »
No, the only way to reset the auto increament index is to empty the whole table with
Code: [Select]
DELETE FROM [table]

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
How can I change volume of 'next autoindex' in MySQL for 4im
« Reply #2 on: October 17, 2002, 01:41:52 AM »
omg, sounds not too good...
but thx, Jan.
btw, if so, how many photos I can add? is there a limit like to 65535? hope not, couse I'm getting close to this number! just 63535 more photos and I'm done! hehe
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
How can I change volume of 'next autoindex' in MySQL for 4im
« Reply #3 on: October 17, 2002, 08:20:04 AM »
The limit is 8388607. Hope this is enough ;)

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search