Jump to content

HELP, I'm sinking!!! mysql is truncating content


michaellunsford

Recommended Posts

Okay, I'm sick to my stomach because I'm completely at the mercy of something I am totally unaware of.

I have a WYSIWYG HTML editor that allows users to edit their little page online. they edit the page and it's happy. it looks good. and it stays for a day or two.

but then, without warning, you go to their page one day, and the page's content has been truncated. I have had to pull database backups to fix this in the past, but I really want to know what is causing it?

typically the page is not edited anywhere, it just gets cut. Here's the detail:

keyfield int(11) PRI NULL auto_increment
page varchar(64)
content text

the part that's being truncated is the "content" field. The one that was truncated is 7,840 in length (after being truncated).

The longest field is 65,542 in length (is there a limit? 65,536 or something?)

seriously, I have indigestion. Any insights would be a tremendous help.

[b]Edit:[/b] I have just yum updated mysql to 4.1.20 from 4.1.18 (in the hopes that mysql may have fixed something that caused this?)

[b]Edit2:[/b] Is there a mysql log that can tell me when a database has been modified, scanned, or otherwise touched and by whom?
Link to comment
Share on other sites

Well, yes, 64 characters isn't very long for page content... though you can have a huge column type if need be (up to 4GB).  Obviously, something "else" is running an update statement.  There is a query log that you can enable... I don't remember exactly what line you have to add to my.cnf, though.
Link to comment
Share on other sites

the 64 character limit is just for the page name (I can't think of any reason it would need to be longer). The only thing I am doing regularly is a daily mysqldump using the database username and password. The dump goes into a textfile and gets zipped up and emailed to the site admin weekly (or daily depending on their preference).

Plesk is also running its own mysqldump every day at 5:14AM -- but as far as I can tell, it's just for plesk stuff (and horde's webmail stuff)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.