I've got a MySQL database I've just transferred onto a new machine.
It's an old databse and I've now noticed a slight flaw in my design. It holds information on files and I've recorded their location with a full path.
Only problem is the path is different on the new server.
How can I update lots of records but only change part of a field?
ie:
/home/blah/files/xyz.txt -> /var/storage/blah/yxz.txt
/home/blah/files/abc/txt -> /var/storage/blah/abc.txt
I can do this in PHP no problem, but I'm looking for a MySQL solution to this.
Anybody?