Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

创建新数据库的问题 #29

Open
Fire-X opened this issue Sep 14, 2020 · 4 comments
Open

创建新数据库的问题 #29

Fire-X opened this issue Sep 14, 2020 · 4 comments

Comments

@Fire-X
Copy link

Fire-X commented Sep 14, 2020

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

@bazzilic
Copy link
Contributor

bazzilic commented Sep 14, 2020

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

@Fire-X
Copy link
Author

Fire-X commented Sep 14, 2020

是的

@bazzilic
Copy link
Contributor

bazzilic commented Sep 15, 2020

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
Copy link
Author

Fire-X commented Sep 15, 2020

了解了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants