Here is my situation:
My company hosts multiple sites for clients, and the content of the sites are stored in a MySQL database.
I have an issue where I need to go through the whole database and replace pieces of the content. For example:
I need to replace http://downloads.mysever.com/siteID/someImage.jpg with //downloads.mysever.com/siteID/someImage.jpg
So I just need to remove the http: from all links that are going to our downloads server.
My question is what would be the best way to go about this? Will I need to write a php script to handle this, or am I able to use just MySQL to accomplish this.
Thanks
UPDATE table SET col = SUBSTR(col, 6)http:with an empty string, still doesn't require a regex