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

使用Supabase和vercel部署找不到数据库 #25

Closed
qingwz1994 opened this issue Jan 19, 2024 · 2 comments
Closed

使用Supabase和vercel部署找不到数据库 #25

qingwz1994 opened this issue Jan 19, 2024 · 2 comments

Comments

@qingwz1994
Copy link

使用Supabase和vercel部署的时候,Supabase中表授予读取权限,为什么老是报数据库找不到,大佬知道解决办法吗
"database "public" does not exist"

Copy link

非常感谢您提交了 issues,我们很高兴能够与您一起合作解决这个问题。我们将尽快进行审核,并会在 24 小时内回复您。在此期间,如有任何问题,请随时联系我们。再次感谢您的贡献!

@besscroft
Copy link
Owner

首先复制 schema.sql 到 SupaBase 的 SQL Edit 执行:
image
然后去设置查看配置信息,如图:
image
可以看到是可以连接成功的:
image
然后需要去配置 RLS,找到 Authentication -> Policics
image
image
image
image
image
image
先确保按照步骤来,如果不熟悉 SupaBase 的话,可能会配置错误。如果正确配置了还有问题再找我,我有空时会看的。

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

No branches or pull requests

2 participants