The Bad Astronomer
01-January-2006, 09:37 PM
I am pleading to the combined experience of BAUTers here, at least those who know MySQL.
I have a bazillion pictures in a folder that I use for my blog. Stupidly, I didn't plan ahead when I started the blog, and so I have one big folder with all those images in it instead of having them in subfolders. I just posted a new entry with images, and so I created a new folder called "2006", and this is where I'll keep all my images for this year in the blog.
But I have hundreds (yikes) of images in my top blog picture folder, and I want to clean that folder up. So I want to create a "2005" subfolder and move them there. But if I do, I'll have hundreds of broken links in my 2005 blog entries.
I looked at the MySQL table for my blog, and there is a "posts" structure, and there is a table entry for "post_content" which has the text of my post. I'd like to change the links for all images from "/pix/bablog/" to "/pix/bablog/2005/". Doing it individually will take a long time of tediousness. I want to do something like global search and replace.
Does anyone know how to do this? I have phpMyAdmin, and can run SQL queries. However, my knowledge of all this is limited.
Thanks!
I have a bazillion pictures in a folder that I use for my blog. Stupidly, I didn't plan ahead when I started the blog, and so I have one big folder with all those images in it instead of having them in subfolders. I just posted a new entry with images, and so I created a new folder called "2006", and this is where I'll keep all my images for this year in the blog.
But I have hundreds (yikes) of images in my top blog picture folder, and I want to clean that folder up. So I want to create a "2005" subfolder and move them there. But if I do, I'll have hundreds of broken links in my 2005 blog entries.
I looked at the MySQL table for my blog, and there is a "posts" structure, and there is a table entry for "post_content" which has the text of my post. I'd like to change the links for all images from "/pix/bablog/" to "/pix/bablog/2005/". Doing it individually will take a long time of tediousness. I want to do something like global search and replace.
Does anyone know how to do this? I have phpMyAdmin, and can run SQL queries. However, my knowledge of all this is limited.
Thanks!