因为PgAdmin打不开,但是数据库已经安装成功了,这里借助Pg命令来还原数据库

C:\Program Files\PostgreSQL\15\bin\psql.exe
#链接数据库
psql -U postgres -p 5432
#创建数据库
CREATE DATABASE "数据库名称"
    WITH
    OWNER = postgres
    ENCODING = 'UTF8'
    LC_COLLATE = 'Chinese (Simplified)_China.936'
    LC_CTYPE = 'Chinese (Simplified)_China.936'
    TABLESPACE = pg_default
    CONNECTION LIMIT = -1
    IS_TEMPLATE = False;
#还原数据库
pg_restore.exe --host "localhost" --port 5432 --dbname 数据库名称 --username postgres --role postgres   --verbose 数据库地址

![[ubuntu-22.04]ubuntu不识别rtl8153 usb转网口](https://i-blog.csdnimg.cn/direct/ae1d1eb23292477f9d36a4890edeae6f.png)












![2-markdown转网页页面设计 --[制作网页模板]](https://i-blog.csdnimg.cn/direct/ed91b55598b84a709227439b5623c206.png#pic_center)



