Hi all. I have around 1200 music url records. I wanted to change all the url path from:
to
I had in mind to use this query:
But by mistake i run this query:
Now all the urls looks like this which are not correct
could any one show me how to fix these urls so there is a slash / after and before songs word for all
the 1200 url records?I am using phpmyadmin and don't know if there is any role back or undo function in mysql and phpmyadmin.
Mainly i want the first part of all urls be
instead of
Code:
[URL unfurl="true"]http://music.somesite.com/IlIlIlIIIll11lIlI44/cindy/life/power[/URL] of life.mp3
Code:
[URL unfurl="true"]http://music.somesite.com/songs/cindy/life/power[/URL] of life.mp3
Code:
UPDATE musicurls
SET filename= CONCAT( SUBSTRING_INDEX(filename, '/', 3), '/songs/', SUBSTRING_INDEX(filename, '/', -3) )
Code:
UPDATE musicurls
SET filename= CONCAT( SUBSTRING_INDEX(filename, '/', 3), 'songs', SUBSTRING_INDEX(filename, '/', -3) )
Code:
[URL unfurl="true"]http://music.somesite.comsongscindy/life/power[/URL] of life.mp3
the 1200 url records?I am using phpmyadmin and don't know if there is any role back or undo function in mysql and phpmyadmin.
Mainly i want the first part of all urls be
Code:
[URL unfurl="true"]http://music.somesite.com/songs/[/URL]
Code:
[URL unfurl="true"]http://music.somesite.comsongs[/URL]