Round Rock / Austin, Texas
Drupal Web Developer

Disabling a Module via the Database in Drupal 8

Disabling a Module via the Database in Drupal 8

Need to disable a module via the Database? There are a couple of approaches to take:

1) In D7 you could do this in the systems table by setting the status to 0. In D8, however this is stored in the config table. You can edit the blob value in the data field for this result:
SELECT * FROM config WHERE name like '%.extension%';

2) Or here's the fast (but dirty) solution:
- Delete the module's folder from the file system (/modules/
- truncate table cache_config

Tags: