Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Apolyton/Community-Archive > Problems with database
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:34
  Old Post 27-02-2004 22:02
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Problems with database Support Apolyton, buy Call to Power 2

The queries are failing...

Time to do a maintenance?

alva is offline alva
Emperor
Republic of Flanders
Sep 2001
time: 06:34
  Old Post 27-02-2004 22:38
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Full PM-box? Change here!

Why do they start failing?

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:34
  Old Post 27-02-2004 23:47
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton buy from Amazon

No idea why, not a guru of MySQL. All I know is it wouldn't let me attach images.

Kalius is offline Kalius
Emperor
Kriegsgewitter
Aug 2002
time: 16:34
  Old Post 27-02-2004 23:49
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Lose 30 kilos (of popups)

Possibly related to a faulty table, or somesuch.

In any case, attachments aren't working

MarkG is offline MarkG
Grand Lord of Apolyton, Owner of all this land as far as the eye can see

Donate to the Red Cross
Macedonia, Greece
Jan 1970
time: 07:34
  Old Post 28-02-2004 00:03 Visit MarkG<br><img src=/forums/images/admin-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton or Terrorists Win

blah

MarkG is offline MarkG
Grand Lord of Apolyton, Owner of all this land as far as the eye can see

Donate to the Red Cross
Macedonia, Greece
Jan 1970
time: 07:34
  Old Post 28-02-2004 00:04 Visit MarkG<br><img src=/forums/images/admin-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Full PM-box? Change here!

fixed

we've managed to max out the allowed space for id's(65k) on the attachment table

Lazarus and the Gimp is offline Lazarus and the Gimp
King
Whale-raping abomination
Aug 2000
time: 05:34
  Old Post 28-02-2004 01:15
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Call to Power 2

No error message any more, but attachments aren't showing.

Maniac is offline Maniac
Emperor
Gent, Belgium
Jul 1999
time: 06:34
  Old Post 28-02-2004 01:58
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Remove this text

When a few hours ago I tried to post a Superhero image in that off topic thread, I get the following message:

quote:
There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

We apologise for the inconvenience.


Database error in vBulletin: Invalid SQL: INSERT INTO attachment (attachmentid,userid,dateline,filename,visible,has
h) VALUES (NULL,3088,1077899568,'obstructor.jpg','1','63949fb9398e6fd828c64f66884df1cd')
mysql error: Duplicate entry '65535' for key 1
mysql error number: 1062
Date: Friday 27th of February 2004 11:32:48 AM
Script: /forums/newreply.php
Referer: http://apolyton.net/forums/newreply...threadid=108754


When I tried again now, I got the following message:

quote:
There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

We apologise for the inconvenience.


Database error in vBulletin: Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at
tachmentid,pagetext,allowsmilie,showsignature,ipad
dress,iconid,visible) VALUES (NULL,'109506','','Maniac','3088','1077915061','65
559','Test','1','1','80.200.248.206','0','1')
mysql error: Server shutdown in progress
mysql error number: 1053
Date: Friday 27th of February 2004 03:53:57 PM
Script: /forums/newreply.php
Referer: http://www.apolyton.com/forums/newr...threadid=109506


Any idea what's going on?

MarkG is offline MarkG
Grand Lord of Apolyton, Owner of all this land as far as the eye can see

Donate to the Red Cross
Macedonia, Greece
Jan 1970
time: 07:34
  Old Post 28-02-2004 02:00 Visit MarkG<br><img src=/forums/images/admin-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

blah

Maniac is offline Maniac
Emperor
Gent, Belgium
Jul 1999
time: 06:34
  Old Post 28-02-2004 02:01
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Browse Apolyton AD-FREE

?

MarkG is offline MarkG
Grand Lord of Apolyton, Owner of all this land as far as the eye can see

Donate to the Red Cross
Macedonia, Greece
Jan 1970
time: 07:34
  Old Post 28-02-2004 02:01 Visit MarkG<br><img src=/forums/images/admin-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Remove this text

changes where needed in the posts table as well..

Attachment: im9.jpg
This has been downloaded 88 time(s).

vmxa1 is offline vmxa1
Deity
Oviedo, Fl
Nov 2001
time: 21:34
  Old Post 28-02-2004 02:16
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Inflate your Upload Space

quote:
Originally posted by MarkG
fixed

we've managed to max out the allowed space for id's(65k) on the attachment table


Time to purge some of the inactive users. What criteria do you use for this process?

MarkG is offline MarkG
Grand Lord of Apolyton, Owner of all this land as far as the eye can see

Donate to the Red Cross
Macedonia, Greece
Jan 1970
time: 07:34
  Old Post 28-02-2004 02:29 Visit MarkG<br><img src=/forums/images/admin-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Put an end to popups!

it's not an issue if inactive users, this was about the attachments sql table

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:34
  Old Post 28-02-2004 07:42
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Enter the AD-FREE zone

Hosing the older attachments?

MarkG is offline MarkG
Grand Lord of Apolyton, Owner of all this land as far as the eye can see

Donate to the Red Cross
Macedonia, Greece
Jan 1970
time: 07:34
  Old Post 28-02-2004 10:02 Visit MarkG<br><img src=/forums/images/admin-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Browse Apolyton AD-FREE

no, the actual data of the attachments is not in the database any longer

the attachment table has an id column which was an int(5) so it had a maximum value of 65535. we've reached that number(we have less than 65535 attachments but when an entry is deleted the id is not used by a new one) and had to alter the table structure to be usable again

Skanky Burns is offline Skanky Burns
Deity
Skanky Bastard Quartermaster
Aug 2001
time: 14:34
  Old Post 28-02-2004 11:33
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Got spare money?

So what is the id column now?

MarkG is offline MarkG
Grand Lord of Apolyton, Owner of all this land as far as the eye can see

Donate to the Red Cross
Macedonia, Greece
Jan 1970
time: 07:34
  Old Post 28-02-2004 11:54 Visit MarkG<br><img src=/forums/images/admin-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

now it's an int(10)

should last a bit longer

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:34
  Old Post 28-02-2004 19:51
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Enter the AD-FREE zone

I thought the number in parantheses is the default display length while the max number can be held is determined by type of field? So tinyint (unsigned) holds 255, smallint holds 65535, etc?

pchang is offline pchang
King
Cupertino?
Aug 1999
time: 05:34
  Old Post 01-03-2004 20:47
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Urban Ranger
I thought the number in parantheses is the default display length while the max number can be held is determined by type of field? So tinyint (unsigned) holds 255, smallint holds 65535, etc?


mySQL fields don't work that way. They are literally the number of digits in the number. This is fairly standard among DB implementations.

alva is offline alva
Emperor
Republic of Flanders
Sep 2001
time: 06:34
  Old Post 01-03-2004 21:43
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Enter the AD-FREE zone

Then shouldn't int(5) be equal to 99999 instead of 65535 ?

Just wondering

pchang is offline pchang
King
Cupertino?
Aug 1999
time: 05:34
  Old Post 01-03-2004 22:53
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Help yourself to an AD-FREE life

quote:
Originally posted by alva
Then shouldn't int(5) be equal to 99999 instead of 65535 ?

Just wondering


Yes.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:34
  Old Post 02-03-2004 08:40
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Help yourself to an AD-FREE life

quote:
Originally posted by pchang
mySQL fields don't work that way. They are literally the number of digits in the number. This is fairly standard among DB implementations.


Not according to MySQL (Second Edition) by Paul Dubois (Sam's 2003), pp. 102 - 104.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:34.
Apolyton Time is 00:34.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0403 seconds (89.70% PHP - 10.30% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net