install postgresql in ubuntu

摘要:install postgresql in ubuntu

使用apt-get install postgresql-9.3无法安装

In Ubuntu official repositories only PostgreSQL 9.1 is available.

n order to get PostgreSQL v9.2 in your VPS using apt you should follow the official PostgreSQL procedure for Ubuntu found?here

It consists of adding PostgreSQL official repository as one of your repository source

  1. Create the file?/etc/apt/sources.list.d/pgdg.list
  2. Insert this line?deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
  3. Import the repository signing key?wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
  4. Refresh your repositories cache?sudo apt-get update

Now you can simply do?sudo apt-get install postgresql-9.2

一:CREATE DATABASE 语法 (Syntax)

=====================================

CREATE DATABASE database_name;

CREATE DATABASE 叙述句实例 (Example)

假设我们想建立一个叫做“mydatabase”的数据库:

CREATE DATABASE mydatabase;

原文:大专栏  install postgresql in ubuntu

原文地址:https://www.cnblogs.com/chinatrump/p/11473904.html

时间: 2024-11-02 20:53:32

install postgresql in ubuntu的相关文章

PostgreSQL在Ubuntu上安装

安装环境: Ubuntu 64bit PostgreSQL 9.0 1. 安装PostgreSQL 输入如下命令 sudo apt-get install postgresql 系统会提示安装所需磁盘空间,输入"y",安装程序会自动完成. 安装完毕后,系统会创建一个数据库超级用户"postgres", 密码为空.这个用户既是不可登录的操作系统用户,也是数据库用户. 2. 修改ubuntu用户postgres的密码 输入如下命令 sudo passwd postgre

PostgreSQL在Ubuntu上安装指南

原文地址:http://www.cnblogs.com/bluesfeng/archive/2010/09/01/1815417.html 安装环境: Ubuntu 10.04-desktop-i386 PostgreSQL 8.4 1. 安装PostgreSQL 输入如下命令 sudo apt-get install postgresql 系统会提示安装所需磁盘空间,输入"y",安装程序会自动完成. 安装完毕后,系统会创建一个数据库超级用户“postgres”, 密码为空.这个用户既

(转) How to install eclipse in ubuntu 12.04

源地址:http://www.krizna.com/ubuntu/install-eclipse-in-ubuntu-12-04/ Eclipse installation in ubuntu 12.04 is very simple . you can install eclipse using “software center” but you may not get the latest version, better download the latest version and ins

Install golang on Ubuntu 14.04 LTS

1. Install golang on Ubuntu 14.04 LTS a)~$ sudo apt-get install golang                   success b)~$ sudo add-apt-repository ppa:gophers/go ~$ sudo apt-get update ~$ sudo apt-get install golang-stable         fail c) complie from source code        

Install ntopng on Ubuntu 14.04 Server

please check http://www.nmon.net/apt-stable/ 1. echo -e "deb http://www.nmon.net/apt-stable/14.04/ x64/\ndeb http://www.nmon.net/apt-stable/14.04/ all/" > /etc/apt/sources.list.d/ntop.list wget -qO - http://www.nmon.net/apt-stable/ntop.key |

install r on ubuntu

install r-base on ubuntu: sudo apt-get install -y r-base download rstudio: https://download1.rstudio.org/rstudio-1.0.153-amd64.deb install gui tool(rstudio) for r language: sudo dpkg -i rstudio-***-amd64.deb some examples for r language: *** # librar

Install OpenCV-Python in Ubuntu

之前安装python版opencv,需要下载whl文件,进行安装 今天发现一个简单的方法. Install OpenCV-Python in Ubuntu Install package python-opencv with following command in terminal (as root user). $ sudo apt-get install python-opencv Open Python IDLE (or IPython) and type following codes

How to Install PhantomJS on Ubuntu 16.04

Introduction PhantomJS is a scripted, headless browser that can be used for automating web page interaction. PhantomJS is a free, open source and distributed under the BSD license. PhantomJS is based on WebKit and is very similar browsing environment

How To Install Docker On Ubuntu 18.04

Docker is an increasingly popular software package that creates a container for application development. Developing in Docker speeds up applications, as it shares the kernel and other resources, instead of requiring dedicated resources. There are two