I’d like to replace an url in my WordPress database, but phpMyAdmin won’t perform my sql code
UPDATE wp_posts
SET post_content = replace (post_content, 'http://www.domain.de' , 'http://localhost/wordpress');
UPDATE wp_postmeta
SET meta_value = replace (meta_value, 'http://www.domain.de' , 'http://localhost/wordpress');
All I get is
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘’ at line 1
I checked the SQl syntax but for me it seems to be right, could it be a problem with phpMyAdmin? (I am running 4.5.1)
Posting as a community wiki.
As stated in comments:
Reference:
https://www.w3.org/International/questions/qa-byte-order-mark
A.k.a.: Byte Order Mark (BOM), but in this case, what failed you was just that, a ZERO WIDTH NO-BREAK SPACE.