warrior@pc:~$ sudo apt-get install postgresql-xx-xx   #可以使用Tab键进行代码补全

warrior@pc:~$ sudo su postgres             #切换到 postgres

postgres@pc:/home/warrior$ psql postgres                       # 登录 postgres 数据库

postgres@pc:/home/warrior$ psql postgres
psql (9.1.9)
Type "help" for help.

postgres=# ALTER USER postgres WITH PASSWORD '123123a';  #修改密码为123123a
ALTER ROLE
postgres=# \q
postgres@pc:/home/warrior$ exit

转载于:https://www.cnblogs.com/warrior/p/3301974.html

Ubuntu安装PostgreSQl相关推荐

  1. Ubuntu 安装PostgreSQL

    最近项目需要再Ubuntu中安装PostgreSQL-11.4,特此记录便于日后查阅. 1.下载 $ wget https://ftp.postgresql.org/pub/source/v11.4/ ...

  2. Ubuntu 安装 PostgreSQL 教程

    Ubuntu 安装 PostgreSQL 使用 apt-get 安装 PostgreSQL: sudo apt-get update sudo apt-get install postgresql p ...

  3. ubuntu安装postgresql并修改数据存储目录

    安装postgresql: @ubuntu:~$ sudo apt install postgresql 安装成功显示: Success. You can now start the database ...

  4. ubuntu安装postgreSQL 9.3

    2019独角兽企业重金招聘Python工程师标准>>> Install dependency Open Terminal and execute the following comm ...

  5. python psycopg2_Ubuntu 安装 PostgreSQL 和 python-psycopg2基础教程(以及错误解决)

    Ubuntu 安装 PostgreSQL 和 python-psycopg2基础教程(以及错误解决) 2012/06/27 by Crazyant    3条评论 Django支持以下四种数据库Pos ...

  6. Win10子系统Ubuntu安装Thingworx8.5--1. WSL Ubuntu 安装

    最近因工作原因需要重装Thingworx,在WIn10的WSL中进行安装. 1. Win10 --WSL Ubuntu 安装 2.Ubuntu --Thingworx安全文件准备 3.Ubuntu - ...

  7. Ubuntu安装、使用postgresql数据库

    Ubuntu安装.使用postgresql数据库 $ sudo apt-get install postgresql  (端口为5432) $ sudo apt-get install postgre ...

  8. ubuntu 16.4 安装postgreSQL,使C++链接到数据库

    1.安装postgreSQL Ubuntu下编译安装postgreSQL 10.5 https://blog.csdn.net/lc_2014c/article/details/84189162 2. ...

  9. 在Ubuntu 18.04上安装PostgreSQL 11和PgAdmin4

    In this guide, you will learn how to install PostgreSQL 11 and PgAdmin4 on Ubuntu 18.04 LTS. 在本指南中,您 ...

最新文章

  1. 底部导航栏的几种实现方式
  2. 共济失调对我们的危害你知道吗
  3. python项目方案书模板格式_项目策划书格式范文
  4. 【笔记】EFCore SQLite 拼音汉字互换
  5. FFMPEG+SDL播放音频流
  6. 本科计算机专业学物理力学吗,想读完研就工作,应该选哪个方向,本科物理, - 考研 - 小木虫 - 学术 科研 互动社区...
  7. [喷嚏]区块链已落地30个场景 商用时代正在加速来临
  8. 【LINUX】STM32MP1笔记1-安装入门包
  9. springboot导入后Spring包飘红问题解决
  10. 多环境配置的时候报while scanning for the next token found character ‘@‘ that cannot start any token【完全解决方法】
  11. 同等学力计算机 百度云,2020计算机二级题库百度云_圣考研网
  12. “PS”制作“logo”
  13. 羊了个羊的模式浅薄认知
  14. leetcode 354. Russian Doll Envelopes
  15. mysql 注入关键字waf_利用mysql的隐式类型转换绕过waf注入
  16. 编程初学者入门训练-上三角矩阵判定
  17. 【CocosBuilder 开发系列之一】cocos2dx使用CocosBuilder完成骨骼动画
  18. 安卓手机如何查看WIFI密码
  19. 1109:开关灯(C C++)
  20. rust怎么调整夜晚亮度_摄影:手机怎么拍夜景?学会这4个拍摄技巧会很有帮助...

热门文章

  1. 大话设计模式-备忘录模式
  2. php随机数、时间、字符串函数,正则,数组函数
  3. ubuntu 桌面图标设置
  4. NGUI-制作位图字体以及图文混排
  5. AD 10 原理图编译错误
  6. [VB] Option Explicit
  7. android垂直排列元素_Android弹性布局(FlexboxLayout)
  8. vue 点击事件传递多个参数_vue传事件参数
  9. VS2019 C#安装那些插件_【完整版】针对零基础小白的VS2019安装攻略
  10. java ror框架搭建_ROR 环境的 搭建