I have a table in mysql 'url_map' with 2 columns: id, url with some values populated in it. Something like this:
+----+-----------------------------------------+                                                                                 | id | url                                     |                                                                                 +----+-----------------------------------------+                                                                                 |  1 | http://myserver.mywebsite.com/file1.txt |                                                                                 |  2 | http://myserver.mywebsite.com/file2.txt |                                                                                 +----+-----------------------------------------+ 
My requirement is to update the 'url' of every row in the table to a new value using it's previous value.
+----+---------------------------------------------+                                                                                 | id | url                                         |                                                                                 +----+---------------------------------------------+                                                                                 |  1 | https://mynewserver.mywebsite.com/file1.txt |                                                                                 |  2 | https://mynewserver.mywebsite.com/file2.txt |                                                                                 +----+---------------------------------------------+ 
If you see the changes, in every row, the value of 'url' has been changed from
- http:// to https://
 - myserver to mynewserver
 
rest other things in the url are kept as they were previously.
Can anyone please help me out in writing the query for this ?