启动windows下ubuntu 子系统时,提示WslRegisterDistribution failed with error: 0x800703fa,通过搜索成功解决
C:\> bash
$ sudo apt update
$ sudo apt upgrade
$ <CTRL-D>
C:\> exit
网上查到的是sudo apt dist-upgrade
,当sudo apt upgrade
不行时可以试下
启动windows下ubuntu 子系统时,提示WslRegisterDistribution failed with error: 0x800703fa,通过搜索成功解决
C:\> bash
$ sudo apt update
$ sudo apt upgrade
$ <CTRL-D>
C:\> exit
网上查到的是sudo apt dist-upgrade
,当sudo apt upgrade
不行时可以试下
CREATE USER davide WITH PASSWORD 'jw8s0F4';
CREATE ROLE admin WITH CREATEDB CREATEROLE;
ALTER ROLE davide WITH PASSWORD 'hu8jmn3';
ALTER ROLE davide WITH PASSWORD NULL;
CREATE DATABASE sales OWNER salesapp
create user test_readonly with password 'password';
grant connect on DATABASE test to test_readonly;
grant select on all tables in schema public to test_readonly;
pg_dump -F t -h 127.0.0.1 -U postgres dbname > dbname.tar
pg_restore -d dbname dbname.tar