1) Check out the OS version and architecture, such as:
bash-3.00# cat /etc/release
Solaris 10 5/08 s10s_u5wos_10 SPARC
bash-3.00# isainfo -b
64
2) Although it's not hard to build code from scratch, it's much easier to download the pre-build version. Say for this SunOS, the URL would be:
http://wwwmaster.postgresql.org/download/mirrors-ftp/binary/v9.0.4/solaris/solaris10/sparc/postgresql-9.0.4-S10.sparc-64.tar.bz2
3) Unzip the binaries at the aimed
INSTALL_DIR:
bunzip2 < postgresql-9.0.4-S10.sparc-64.tar.bz2 | tar xpf -
4) For Solaris, the buildin version will be 8.1, to override it, set PATH env to
INSTALL_DIR/postgres/9.0-pgdg/64/bin before /usr/bin
5) $ Init the data folder:
pg_ctl -D /usr/local/pgsql/data initdb
6) The default sa would be postgres with a
NULl passwd
7) Start db:
pg_ctl start -l logfile
7) Creating a db using command:
createdb test
8) The default port used is 5432, now the server will be ready to accept connnections
9) Backup & Restore:
pg_dump -Ft mydb -f db.tar
pg_restore pg_restore -d newdb db.tar
分享到:
相关推荐
pgsql拼接pgsql拼接pgsql拼接pgsql拼接
适合初学pgsql数据库和经常使用pgsql数据库,建议使用sudo命令运行该脚本或使用root权限运行
pgsql使用中,遇到mybatis
nacos默认只支持mysql数据库链接,有些项目用的是pgsql,所以做了一个能支持pgsql的nacos包
PGSQL ODBC 13
Pgsql常见问题
pgsql客户端管理工具
pgsql驱动jar包,jdk 本身没有提供访问数据库的能力,它只是提供了一些接口,具体功能由各个数据库的的驱动jar包来实现,举个例子,Connection 它只是一个接口,具体的实现由具体的数据库的的驱动jar包实现,你可以在...
PgSQL常用命令
sudo yum install -y postgresql12-server sudo /usr/pgsql-12/bin/postgresql-12-setup initdb sudo systemctl enable postgresql-12 sudo systemctl start postgresql-12
pgsql.zip 下载下载
整合了一些常见的易出错的问题,为PGSQL学习提供了参考。
navicat_pgsql navicat_pgsql navicat_pgsql navicat_pgsql
mysql迁移到postgresql工具 mysql2pgsql.perl,支持环境 Linux / Mac OS / BSD / Solaris
pgsql实现全文检索,需要安装必须的插件,内容写了如何安装等!
基于.NET FRAMEWORK 4.5.1,连接PGSQL导出表结构信息到excel中
解决thinkphp不能兼容pgsql的问题,在开发过程中不能读取数据库。希望对大家有用。
根据PGSql表结构生成其对应的表结构文档
pgsql 绿色版本安装。穿了三次都失败了。
centos下php安装pgsql和pdo_pgsql扩展,这是另一种方法,很简便,用.so文件来安装