Files
Face-Verifying-HighPost/psql基本配置.md
2025-07-29 10:17:12 +00:00

15 lines
449 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Post GRE SQL 数据库命令记录
## 安装好后默认创建一个超级用户名叫postgre通过以下命令显示地用postgre登录psql没有密码
`sudo -u postgres psql`
## 真正的角色用户进入psql的方式如下
`psql -U myuser -d mydb -h localhost`
## 进入数据库后修改超级账号的密码
`ALTER USER postgres WITH PASSWORD '123456';`
## 通过数据库命令创建第一个数据库
`CREATE DATABASE face_db;`