I am currently migrating a WordPress site no a new domain. I don't have any SQL knowledge but I know that I have to change the URL of WordPress using SQL sentences. As far as I know, I have to use this 4 sentences in Php My Admin.
but if the original data includes the "http://" bit, and the trailing Path, then the REPLACE would still work OK.
REPLACE changes parts-of-columns hence why I think the code is intended to only change the Domain Name part. That said, if you ask REPLACE to change a string that exactly matches the whole contents of a column it will happily do that, its just a bit overkill at that point!
MySQL sometimes uses funny quote characters for things - like the back-tick, but if you have an exact copy of the 1...4 instructions and Copy & Paste the quote from that I can't see you going wrong.
I don't know if MySQL requires the ";" on the end of the line, but I not that you don't have that on the end of your code as you posted it.
Either way, I suspect you will be better off on a MySQL or WordPress forum
Ah, that's interesting. Posting that (i.e. formatted using the [</>] button) it looks like your code has curved single-quotes rather than straight-ones.
Try putting straight-quotes instead of curved "speech-marks"