hi,
how can I change my Drupal filesystem root in the database ? I moved Drupal to another path. I'm looking for this value to update in the database. thanks
hi,
how can I change my Drupal filesystem root in the database ? I moved Drupal to another path. I'm looking for this value to update in the database. thanks
<EDIT>if you want to change it in the database (why?), you can do it by changing the value of file_directory_path
in the variable
table:
UPDATE variable SET file_directory_path = 's:5:"files";';
values in the variable
table are stored as serialized php variables. the serialized value in the example above means file_directory_path
is a string (s
) of length 5
with the value files
. you have to adapt this to your specific value.
also note that Drupal variables are cached (in the cache
table, under the cid
variables
). for your change in the database to take effect, you have to clear that cache, like DELETE FROM cache WHERE cid = 'variables';
.</EDIT>
if you mean the File system path: it's at Administer > Site configuration > File system, or http://yourdrupalsite.com/index.php?q=admin/settings/file-system.
Funny, I just had to do that yesterday.
Since i have phpmyadmin available to me, I used that to export the files table, then do some search/replace routines, then import the table, overwriting the data.
But had I not had phpmyadmin to help, I would have created an SQL query to replace the outdated paths...
Funny, I just moved my drupal to another folder, and it was working. Probably I didn't explain my question very well..