使用有创建数据库特权的用户连接template1系统数据库,
然后create database即可.如:
psql -Upostgres -hlocalhost template1;
create database mydb with owner xxx;另外:
"在程序里实现创建一个mydb的数据库"是否真有这种必要??
然后create database即可.如:
psql -Upostgres -hlocalhost template1;
create database mydb with owner xxx;另外:
"在程序里实现创建一个mydb的数据库"是否真有这种必要??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货