I run in mysql:
update variable set value = replace(value,'SiteName','NewName');
and then clearing cache:
drush cache-clear
But I dont know why the site name become blank instead of NewName
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.