tenancy / multi-tenant

Run multiple websites using the same Laravel installation while keeping tenant specific data separated for fully independent multi-domain setups, previously github.com/hyn/multi-tenant
https://tenancy.dev
MIT License
2.56k stars 394 forks source link

move to another hosting #950

Closed prg-hussam closed 4 years ago

prg-hussam commented 4 years ago

Hello

We have moved to a new hosting and we have export all database but we facing a problem in tenants databases Access denied for user 'd5a53392a8a644929b583fbaead0e3d7'@'localhost' (using password: YES) (SQL: select * from settings where key = default_locale limit 1)

Is there a place where you store databases credentials ?

thanks

bkintanar commented 4 years ago

db credentials are being generated automatically on the fly. and it takes into consideration your APP_KEY or TENANCY_KEY. so if you've changed that between host, i think it's best to copy the old key and try if you can access the db.

prg-hussam commented 4 years ago

THNAKS

bkintanar commented 4 years ago

lol! did it work?

prg-hussam commented 4 years ago

yes its working thanks :) 😊

bkintanar commented 4 years ago

thanks for confirming!

bkintanar commented 4 years ago

by the way https://github.com/tenancy/tenancy has been released, maybe you could check it out some time.