you need REPLACE
.
Try that:
UPDATE users SET avatar = REPLACE(avatar, 'www.xxx.com', 'www.yyy.fr')
WHERE avatar like '%www.xxx.com%'
this will replace just the word mydomain to newdomain.
mydomain.ltd/image10.png
to
newdomain.ltd/image10.png