2025年02月13日
安装postgresql,将安装路径的bin,放进path里
cmd-psql -U postgres -d postgres //以用户名postgres登陆默认的postgres数据库,口令在安装时设置好了.
create user root with superuser; //建立root账户
alter user root with password ‘root’; //为root配置登陆密码
\q //回到cmd
createdb -U root mydb //回车后输入口令ro
postgresql