I run in mysql:
update variable set value = replace(value,'SiteName','NewName');
and then clearing cache:
But I dont know why the site name become blank instead of
I've tried this after replace in variable table, but not works:
update cache set data = replace(data,'SiteName','NewName');
I hope I can change any data from command line.