[1+1=2]

OneAndOneIs2

« A reported conversation..I hate to say "I told you so" »

Sun, Mar 08, 2009

[Icon][Icon]Another MySQL debug

• Post categories: Omni, Technology, My Life

I noticed that my blog's RSS feeds weren't working for the last couple days. But I had no idea why, and I had other things to worry about, so I didn't do much about it.

Then I got a helpful pointer from sokuban (Cheers, sok!) that at the bottom of the blog (Where I rarely go) was yet another MySQL error: This time, it was errno=1062 caused by a duplicate entry.

It was kind enough to tell me what it was trying to do at the time - update the hitlog - so I went into PhpMyAdmin and selected the evo_hitlog table and clicked on "optimise table"

This gave me a warning that "Number of rows changed from 133381 to 133386" and the error is now fixed.

I'm starting to get worried about the sheer size of this blog. The SQL database is nearly 45MB in size, it's actually so big that I can't actually back it up any more and it's starting to error out.

Oh well. I'm sure it'll be fine... [Smiley]

3 comments

sokuban
Comment from: sokuban [Member] Email
Glad to be of service.

I don't understand the error message at all, but I just saw "UNIXTIME" and I remembered 1234567890 Day and the Unix Y2K. (Was it in 2038 or something?)

I wonder what's gonna happen to my computers then. Either way, I'm going to buy 64bit next time I get a computer just in case.

(So offtopic, I know)
08/03/09 @ 23:38
Hari
Comment from: Hari [Member] · http://harishankar.org/blog/
There's one reason why I've stopped using MySQL at all: the difficulty of porting or moving a database from one place to another.

In fact, I wrote my entire blog backend using SQLite because I dislike MySQL intensely.

SQLite is extremely lightweight, configurable client-side database library but great for blog-driven websites and websites with medium to large sized databases. Backing up a database is as simple as copying the file over to another location. Again, it has enough tools like a graphical SQLite database browser which allows you to create small dbs very easily and also import or export SQL dumps to or from databases.

Nobody needs the power of a separate MySQL server backend unless one is running a worldwide corporate server and needs that scalability.
09/03/09 @ 04:06
drew
Comment from: drew [Visitor] · http://trickykid.org
Actually dumping a MySQL database to move is quite simple. And if you're running out of local space, during the dump compress it with gzip or bunzip, usually a 45MB database if that's the flat file dump would probably result in about a 70-80% compressed file.

You can also save space by probably doing some trimming of older stuff that the blog might accumulate in the tables that you actually no longer need.

Something like this will show you your table information with sizes, etc:

mysql> show table status;
02/04/09 @ 16:36

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)
 

[Links][icon] My links

[Icon][Icon] Hmm.. new look for twitter? I hope it gets less "Ick! Change! Put it back!" nonsense than Facebook..
08/02/12

[Icon][Icon] Facebook Syndication Error
08/02/12

[Icon][Icon] I last listened to:
Johann Pachelbel - Canon in D major

[Icon][Icon] Most recent photo:
Submersible houseboat

[Icon][Icon]About Me

[Icon][Icon]About this blog

[Icon][Icon]My LQ profile

[Icon][Icon]My /. profile

[Icon][Icon]My Wishlist

[Icon]MyCommerce

[FSF Associate Member]


February 2012
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29        

Search

User tools

XML Feeds

eXTReMe Tracker

Valid XHTML 1.0 Transitional

Valid CSS!

[Valid RSS feed]

powered by b2evolution free blog software