WIL WHEATON dot NET

50,000 Monkeys at 50,000 Typewriters Can't Be Wrong

laundrytown

  • WWdN in Exile

A big problem with the upgrade was trying to switch from a SQLite to MySQL database. To do this, I had to export all my entries (easy) and create an empty MySQL database (also easy). Then I need to reconfigure movable type to look at the MySQL database, instead of the SQLite databse (super easy). Then I rebuild my blog, delete the old SQLite database, and have a Guinness to celebrate (pending.)

Still with me?

Okay. So here’s the problem: my export file is 37M, and the server tiems out when it’s trying to import that file. I didn’t know what to do about that, and all this week, I haven’t had the time to figure out a solution. Luckily, Jay told me that I can break up my thirty-seven megabyte text file into as many smaller text files as I want, and import each one. They won’t overwrite each other (which is what I thought they’d do), and when I’m done, I should have a fully functional weblog.

However, thirty-seven megs of plain text is a ton of data, and I don’t have time to cut it all up, upload, it, and repeat that process probably ten times or so. I probably won’t have time until next week. Luckily, I have 26 days remaining before Typepad comes around with a baseball bat and a paper bag.

A quick thought on TypePad: It’s awesome. The interface I’ve been using to update is the nicest WYSIWYG interface I’ve ever used for anything, and the way they let you choose templates and styles is awesome. In fact, if TypePad had existed back when I started WWdN, I doubt I would have ever configured and installed my software on my own server.

When WWdN comes back, expect it to look and feel a lot like this, but without any of the fixed-width stuff.

  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Bluesky (Opens in new window) Bluesky
  • More
  • Click to share on Pinterest (Opens in new window) Pinterest

Like this:

Like Loading...

Related


Discover more from WIL WHEATON dot NET

Subscribe to get the latest posts sent to your email.

30 September, 2005 Wil

Post navigation

little by little → ← brilliant D&D advert

26 thoughts on “laundrytown”

  1. netnomad says:
    30 September, 2005 at 9:52 am

    I just want to say. That picture rocks.

  2. Shellybean/Michele says:
    30 September, 2005 at 9:56 am

    I love using WP, and sorry you’re having troubles with your site. I came here with an agenda though. I know you love boobies, I love boobies too—I have some myself. But this comment really is about Breast Cancer and I know that you and your wife support that cause. So I’d like to invite you to come over to http://www.boobiethon.com/
    I’d like to invite your readers too. It’s a great cause, and you get to see those beautiful boobies while you’re at it.. Thank you Wil for all that you and Anne have done for this cause.

  3. Michael Clark says:
    30 September, 2005 at 10:24 am

    You might explore the split command from an OS X or Linux prompt. That would split your huge file into manageable chunks. You’d probably need to copy and paste a handful of header commands into the top of each output file so that the new SQL database will know where to store the data.

  4. Tim says:
    30 September, 2005 at 10:55 am

    Wil,
    I’m oing to second Michael’s comment about the split command. It’s a standard unix command that breaks files into chunks. Since you’re breaking up an SQL export, you should split by lines rather than size.
    I have to do this all the time on multi-gigabyte log files. Works like a charm.
    Since you’ve already rebuilt the database, as long as your sql export has all the right insert statements, it should accept being cut up without any problem.
    Like I said though, use line numbers, i.e. split -100000 [filename]. If you try it by size it’ll break off in the middle of something probably important.

  5. Mike Goggin says:
    30 September, 2005 at 10:58 am

    Tim beat me to it.
    I was going to say the same thing. If you cut it up by size it might split up in the middle of an INSERT statement and that wouldn’t be good.

  6. mysql guy says:
    30 September, 2005 at 11:00 am

    Don’t bother splitting the text file. Just change the maximum allowable packet size variable to more than 1 meg in your server settings. Muuuuucccchhh easier.

  7. sdimbert says:
    30 September, 2005 at 11:11 am

    Regarding the split command, there’s a nice tutorial here:
    http://www.macmove.com/mm/2005/09/29/40gb-sure-seemed-like-a-lot-a-tutorial/
    Or, if you’re not a Terminal guy, this presents a great way to learn to use Automator.

  8. Erin :) says:
    30 September, 2005 at 12:49 pm

    I LOVE Typepad. 🙂

  9. David Ely says:
    30 September, 2005 at 12:57 pm

    Ditto on the TypePad love. I like MovableType because it lets me tinker and play and configure everything to my heart’s content, but TypePad just makes everything so elegant and easy.

  10. Jeremy_Riley says:
    30 September, 2005 at 1:08 pm

    Hey Wil,
    I actually suggest taking a PHP approach to your issue. Write a script that can parse out the file and run about 1000 lines at a time and when that’s done it runs the next 1000. It’s really easy to do. Email me if you would like me to send you an example script you can just plug your own information into.

  11. Gilder says:
    30 September, 2005 at 1:29 pm

    To WWdN:
    Here’s some virtual chicken soup…get well soon!
    Gilder
    San Antonio

  12. kapgar says:
    30 September, 2005 at 2:02 pm

    Hey Wil,
    I’ve got a Typepad account as well and discovered that you can defeat the horrid “fixed width” syndrome by revisiting your design settings and changing your main column width to “flexible” or some derivation thereof. Seems to work for me. Like setting your main column to 100% to fill the screen that it’s being viewed on. Give it a go.

  13. clara says:
    30 September, 2005 at 4:01 pm

    WWdN, get well soon!

  14. Princess Anna says:
    30 September, 2005 at 6:23 pm

    Glad to hear you’ve found a solution and I’m sorry to hear you’re having trouble. Best of luck figuring it out!
    And good luck with that Guinness. *LoL* That stuff has a taste you really have to get used to… well, at least I do. But it’s good, no doubt. I think you’re required to drink it if you’re Irish. *LoL*

  15. vark says:
    30 September, 2005 at 8:11 pm

    Along the lines of boobiethon, when I saw this I thought of you:
    http://www.starnow.com/Models-wanted/poker_models_wanted.asp
    It’s got breast cancer charity, poker, hot models, exotic locations…

  16. David says:
    1 October, 2005 at 7:39 am

    Typepad rules! It allows you enough room to tinker/modify, w/out requiring you to do coding.
    On the suggestion above to use the ‘flexible’ setting: it applies to the center section but has one problem. When you use it, that space can shrink down to an inch across for those with 14-inch monitors. Makes for a *very* long front page.

  17. John Frost says:
    1 October, 2005 at 5:03 pm

    Also Typepad, and SixApart in general, are about to release a whole new swath of upgrades and features to their weblog software across the board. I’m a longtime Typepad user and really looking forward to that.

  18. Shannon_50 says:
    1 October, 2005 at 5:05 pm

    Wil,
    My name is Shannon and I am a fan of your blog and writing. I am from Long Beach, Mississippi where we were hit hard by Hurricane Katrina. Long Beach is a small town in between Gulfport and Pass Christian. Unfortunately I lost both my home (it was 100 feet from the beach and is now what my husband and I lovingly call “our slab”) and the local library I worked as a reference librarian in. I am writing to ask if you would be willing to donate your books to our library. I would really love for your books to be some of the first ones we put on our shelves. We just finished building a new children’s library before the storm and our big building and children’s library have now been condemned and will have to be demolished. I think books are very important to our community to help keep their minds off the horror we see everyday as we drive down our streets. We would really appreciate the donation. I purchased and read your book before the storm and planned to donate my copy, but unfortunately it was lost. If you would like more information on the library e-mail me at [email protected].
    I tried sending this to your e-mail, but it wouldn’t work. Sorry for posting this on your comments!
    Thanks so much!
    Shannon

  19. AgentMunroe says:
    2 October, 2005 at 10:36 am

    Wil,
    I’ve used a utility called BigDump (yes, bad name) before with good results. It’s designed to get around this exact problem, and automatically handles everything for you – I’ve used it before with large MySQL databases and it’s saved me a bunch of time.
    http://www.ozerov.de/bigdump.php
    Hope this helps!

  20. Artisticspirit says:
    2 October, 2005 at 3:07 pm

    Don’t rush, go take in the movie “Serenity”..it kicks butt.

  21. Noel Burke says:
    2 October, 2005 at 5:39 pm

    hey will, just an idea but why dont you put your temporary blog up in buzznet, I know wendy may has jumped ship to using this over blogspot. just an idea… (oh and the text file should have some delimiter that you can find using the “find” option to make it easier to identify where you should split. Put cursor mid way down txt file, then press find for the delimiter to split it in to) its a far easier way to do it than what ive seen above. only problem is to how to find out what the delimiter is.
    Noel

  22. JadeDragon says:
    3 October, 2005 at 11:17 am

    Wil – I work for a hosting company and we have a user who has a script *exactly* for this purpose.
    http://forum.powweb.com/showthread.php?s=&threadid=20022
    You can upload via FTP and then populate to a mysql database just by filling out the form using your full root path. (change the extension to php, but then you already knew that. 😉 )
    Good luck on the site, I’ve my own 10 or so that go through the annual renewal/update.
    btw- in case you haven’t heard “A Clear Horizon” just landed in amazon.co.jp last month. Making it available in US, UK, Italy, and now Japan. The book has done fairly well, thanks to the writers of thesoapbox and the space you gave us to get together. 🙂
    =)
    Jade

  23. Driftpeasant says:
    3 October, 2005 at 11:41 am

    Well, I hope WWdN comes back up to speed soon. In the interim, I would like to announce that the winner of the Wil Wheaton Memorial Poker Tournament at Linucon 2 this past weekend was James Ernest of Cheapass Games.
    He avenged Wil’s honor by defeating Wil Upchurch, winner of last year’s tourney (over our own beloved Wil Wheaton at the final table).
    –Chase Hoffman

  24. Proz says:
    3 October, 2005 at 2:35 pm

    I should mention that I got 3rd at the Wil Wheaton Memorial Poker Tournament just like last year. Thanks Wil, due to that tournament last year I now play on average 3-5 times a week at freeroll tournaments around town. This year I lost on skill, not just on luck.

  25. Andrew Ferguson says:
    4 October, 2005 at 1:07 pm

    I have another idea that might save you a bunch of time. I’m assuming that you have a set of mySQL commands in your 37MB file and that you are trying to import this massive file via phpMyAdmin or something like that.
    If you have either SSH of FTP access, it should be much easier to upload the file to your server. Once it’s on your server you should be able to use SSH to log in and import the file via the mySQL command line interface OR you should be able to point phpMyAdmin to use a file residing on the local server. Hope that helps and let me know if you need any help.

  26. Dossy says:
    2 December, 2005 at 7:35 am

    Hey, Wil, have you given up on resurrecting your old blog, or do you still need/want help here? I’d be glad to throw a script together to help you get things back in order, if you’d like. Just drop me an email and we’ll work out the details.
    (If my overzealous spam filter bounces your mail as spam, try sending the message as plain text intead of HTML.)

Comments are closed.

Related Posts

from the vault: the autumn moon lights my way

I wrote A LOT about my sons, and our relationship, during this five year mission. It's rewarding and special to look back at those posts, now, knowing everything I know.

WIL WHEATON dot NET is open for business

After a long Exile, I returned home this weekend. Until the heat death of the universe or I stop blogging (whichever comes first), I'll be back at WWdN.

Treat her like a lady, and she’ll always bring you home.

This is the second to last post I made at WWdN:in Exile. I’m copying it here for completion’s sake. In 2001, blogs were very new things. In fact, as much more time was […]

Treat her like a lady, and she’ll always bring you home.

This weekend, after way, way too many years in exile, I’m finally returning home. Wow. Typing that made me feel all the feels. I wasn't expecting that.

Recent Posts

behind his eyes he says ‘i still exist’

behind his eyes he says ‘i still exist’

This thing has been happening to me since I built my first blog about 25 years ago, and you’d think that by now it would have stopped, but here we […]

More Info
hey it’s me on the katee sackhoff podcast!

hey it’s me on the katee sackhoff podcast!

I recorded this episode of the Katee Sackhoff Podcast a couple of weeks ago. It’s when I realized I needed to spend some money on a camera and some lights, […]

More Info
it’s storytime with wil wheaton episode 7 – end of play by chelsea sutton

it’s storytime with wil wheaton episode 7 – end of play by chelsea sutton

Well, here we are in Spain. I feel like I am just getting started, and I wish I had more new episodes yet to come, but we have come to […]

More Info
it’s storytime with wil wheaton episode 6 – if we make it through this alive by a.t. greenblatt

it’s storytime with wil wheaton episode 6 – if we make it through this alive by a.t. greenblatt

Happy Wednesday, friends! I'm here to remind you that there's a new episode of It's Storytime with Wil Wheaton, waiting for you wherever you get your podcasts.

More Info

 

  • Instagram
  • Facebook

Member of The Internet Defense League

Creative Commons License
WIL WHEATON dot NET by Wil Wheaton is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Based on a work at http://wilwheaton.net.

Search my blog

Powered by WordPress | theme SG Double
%d