MineAdmin icon indicating copy to clipboard operation
MineAdmin copied to clipboard

[mysql多库] 增加mysql多库执行后报错

Open cxszn opened this issue 1 year ago • 2 comments
trafficstars

添加多库新库(data2)配置信息后,通过搜索“Db::”将原版默认库增加Db::connection('default')->指引,此时新库(data2)还未配置任何引入字段信息,执行启动后报错将默认库的字段再次查询新库的字段是否存在。如何解决增加新库后需要修改那些内容! image

cxszn avatar Jun 17 '24 07:06 cxszn

Thanks for opening your first issue here! Be sure to follow the issue template! 感谢您在这里反馈第一个问题!请务必遵循问题模板!

boring-cyborg[bot] avatar Jun 17 '24 07:06 boring-cyborg[bot]

加了新库,就要重新执行下 mine:install 把数据迁移一下。你是用来做读写分离?还是什么场景。新库如果用到 mine 自带的业务功能,就需要 mine 的 install

zds-s avatar Jun 17 '24 08:06 zds-s