0

I want to use two databases, that works following: How can I setup multiple database connections in Drupal 8? .

I can set the connection in the settings.php file, access it by injecting a different database connection.

But how can I use a my .install file with hook_schema to create the tables in the second database?

  • Curious to know, why? – No Sssweat Jul 16 '18 at 10:47
  • why two databases? to not spam the main db with click stream and other anaylitcs related data. – Sebastian Jul 16 '18 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.