备份:
切换到postgres用户,然后执行:
pg_dump netcube > /tmp/netcube_backup_2.sql
恢复:
切换到postgres用户,然后执行psql:
#create database dbname
#create user username with password '**';
#alter database netcube owner to username;
#GRANT ALL PRIVILEGES ON <
备份:
切换到postgres用户,然后执行:
pg_dump netcube > /tmp/netcube_backup_2.sql
恢复:
切换到postgres用户,然后执行psql:
#create database dbname
#create user username with password '**';
#alter database netcube owner to username;
#GRANT ALL PRIVILEGES ON <