database - 在 Windows 10 中通过 cmd 登录 postgreSQL 时遇到困难
问题描述
我是 postgreSQL 的新手。第一次我安装了postgreSQL,然后也安装了PGAdmin。
在安装时,我还为默认超级用户“ postgres ”提供了密码。
但我没有使用密码创建任何单独的用户。
我还在我的SYSTEM ENV PATH 变量中添加了 bin dir 路径。
当我在 CMD 中尝试我的第一个命令为>psql时,它提示我作为用户 Krishu 的密码:
Krishu是我的系统用户,而不是我的postgre 用户。但是它这样提示我。显然我不知道密码。
后来我尝试这样: 查看我的问题的截图
后来我在互联网上搜索并创建了一个名为“ krishu ”的用户,与之前显示的相同。
但是当我尝试使用 [大写 K ] Krishu登录时。它显示用户不存在。后来我看到 [小写 k ] krishu用户已创建,即使我在创建 USER 时键入了“ Krishu ”。
实际上我不明白为什么当我在我的cmd中键入[E:\Workspace\Python\homestaurant>psql]时,我的提示总是默认显示 [ Password for user Krishu : ] 。我无法理解的问题是什么。
解决方案
推荐阅读
- excel - VBA 宏将图表从 Excel 粘贴到 Word 中,并使用文本换行设置格式
- java - 如何一次加载多个 Admob 广告并在队列中显示
- javascript - 查找元素内的所有@tagnames,然后在其上插入一个链接
- python - 在远程主机上运行脚本而不关心 ssh 会话
- python - 为什么在 Python 中添加分号会改变结果?
- python-3.x - 未来的龙卷风意外异常
超时后 - reactjs - 第一个带有 create-react-app 的应用,npm start 不工作
- modal-dialog - SharePoint 颜色选择器模式对话框不自动调整
- firebase - 当我通过 Firebase 云消息传递发送推送通知时,我的 React Native 应用程序关闭
- angular - 在 Angular 5 中等待多个 Observables