Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer

up vote 1 down vote accepted

The values are serialized using the built in PHP function serialize() so setting them directly shouldn't work if I understand what you did correctly. You can use drush since it appears you have that available.

Simply use:

drush variable-set site_name "Some name here"

Otherwise you can always configure from the Drupal admin interface.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.