simple-swoole / simps

🚀 A simple, lightweight and high-performance PHP coroutine framework.
https://simps.io
Apache License 2.0
469 stars 48 forks source link

多个数据库怎么创建连接,谢谢 #27

Closed wuzhi403 closed 3 years ago

wuzhi403 commented 3 years ago

多个数据库怎么创建连接,谢谢

sy-records commented 3 years ago

目前仅支持单库,如果你使用的root账号,可以在代码中手动切换数据库

wuzhi403 commented 3 years ago

在初始化model的时候传入db_config还是没有修改成功,我只能通过原生sql语句去修改数据库

sy-records commented 3 years ago

see https://github.com/simple-swoole/simps/issues/9