简体   繁体   English

Fortrabbit上的Laravel 5多租户应用程序

[英]Laravel 5 Multi-Tenancy App on Fortrabbit

Currently migrating Laravel 5 multi-tenancy application on to Fortrabbit. 目前正在将Laravel 5多租户应用程序迁移到Fortrabbit。 My account type is Floppy [ A minimal setup for a development environment, multi-staging, playground or even for a small production.] 我的帐户类型是Floppy [用于开发环境,多阶段,游乐场甚至是小型生产的最小设置。

Single database works perfectly fine, however current grants permitting from creating new databases. 单个数据库运行良好,但是当前的许可允许创建新数据库。

mysql> SHOW GRANTS;

GRANT USAGE ON *.* TO 'my-app'@'%' IDENTIFIED BY PASSWORD 
'*12345678901234567890' WITH MAX_USER_CONNECTIONS 5 

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX,
 ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, CREATE VIEW, SHOW VIEW 
ON `my-app`.* TO 'my-app'@'%' 

Is it possible to have multiple databases on Floppy preset? 是否可以在Floppy预设上有多个数据库?

Please can anyone suggest solution to this issue ? 请问有人可以建议解决此问题的方法吗?

Many thanks 非常感谢

I replied to your private ticket already, but it's worth to answer public: 我已经回复了您的私人机票,但是值得向公众回答:

You can not simply create another database, since there is only one database included and all limits, metrics and migration processes interact with this single database. 您不能简单地创建另一个数据库,因为仅包含一个数据库,并且所有限制,指标和迁移过程都与该单个数据库交互。

This means a setup with multiple databases will not work at fortrabbit. 这意味着具有多个数据库的设置将无法使用fortrabbit。

You may book a RDS database instances at AWS to get more flexibility. 您可以在AWS上预订RDS数据库实例以获得更大的灵活性。

However, most mutli-tenancy applications work with a single database, by adding the "customer_id" to each table to put it simply. 但是,大多数多租户应用程序都可以通过将“ customer_id”添加到每个表中来简单地处理单个数据库。

Cheers Oli 干杯奥利

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM