aprismatic / prismadb

Prisma/DB public releases and documentation.
34 stars 1 forks source link

创建新数据库的问题 #29

Open Fire-X opened 4 years ago

Fire-X commented 4 years ago

在创建新的数据库时,原有的数据库中的表会出现在新的数据库中;如图,其中testdb是原有的数据库,studentdb是新创建的数据库,testdb中的表自动出现在了studentdb中了 创建数据库会出现复用原有数据库

bazzilic commented 4 years ago

In this scenario, is your mysql CLI client connected to the database through Prisma/DB?

Fire-X commented 4 years ago

是的

bazzilic commented 4 years ago

The database can't be changed within the same connection. One instance of a Prisma/DB Proxy supports just one database, if you need to connect to multiple databases - be it within one database server instance or not - you would need multiple Prisma/DB Proxy instances running, one per database.

I will leavbe this issue open to make sure we have better error messages when the user tries to switch the database.

Fire-X commented 4 years ago

了解了