Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试一个 postgresql 教程,但无法登录到似乎是执行任何操作所必需的“postgres”用户帐户。当我完成安装时,我以为我写下了密码,但显然没有。有没有办法让我重设密码或者我需要重新安装?感谢您的任何建议。
sudo passwd postgres会让你去做。
sudo passwd postgres
或者,sudo su - postgres将让您在没有密码的情况下登录 postgres 用户的帐户(自然会要求您输入密码以使用 sudo)。
sudo su - postgres