英文:
Supabase localhost connection failed in Datagrip
问题
我正在按照这个指南在本地使用Datagrip使用Supabase:https://supabase.com/docs/guides/getting-started/local-development#why-develop-locally。然而,我无法在我的MacBook Apple Silicon M1上使用Datagrip连接到本地数据库。在Docker实例运行时,我尝试使用postgres用户名和anon以及service_role密钥作为密码,但似乎什么都不起作用。这是我的终端状态:
这是我在Datagrip中收到的连接设置和错误:
<img width="810" alt="Screenshot 2023-06-11 at 4 00 46 PM" src="https://github.com/supabase/supabase/assets/6226836/61c4830c-fb7f-452a-a042-84c5fcee7397">
如果有任何帮助,将不胜感激。
英文:
I am following this guide to use Supabase locally with Datagrip: https://supabase.com/docs/guides/getting-started/local-development#why-develop-locally. However, I could not connect to local db using Datagrip in my MacBook Apple Silicon M1. While the Docker instance is running, I used postgres username with both anon and service_role keys as passwords but nothing seem to be working. Here is the status in my Terminal:
This is the connection setting and error I get in Datagrip:
<img width="810" alt="Screenshot 2023-06-11 at 4 00 46 PM" src="https://github.com/supabase/supabase/assets/6226836/61c4830c-fb7f-452a-a042-84c5fcee7397">
Any help would be appreciated.
答案1
得分: 1
本地 Supabase 的密码是 postgres
。在截图的数据库 URL 中显示出来。在像这样的连接字符串中,用户名和密码是由冒号(:)分隔的。因此在这里我们可以看到 postgres:postgres
。
英文:
The password for local Supabase is postgres
. It shows up in the DB URL in the screenshot. In connection strings like these the username and password are separated by a colon (:). So here we can see postgres:postgres
.
答案2
得分: 0
我已解决了这个问题。有效的密码是“postgres”。上面的Supabase文档链接没有包含这个信息。我在另一台之前曾在其中使用Supabase本地与Datagrip的MacBook上查看KeyChain密码后找到了它。
英文:
I have solved the issue. The password that works is "postgres". The Supabase document link above does not contain this info. I found it after looking at the KeyChain password in another MacBook where I had previously used Supabase local with Datagrip.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论