首页 > 其他分享 >Mac 安装 postgres

Mac 安装 postgres

时间:2023-08-11 09:44:28浏览次数:28  
标签:2697130 postgresql postgres Mac ROLE 安装 ###

安装

arch -arm64 brew install postgresql

初始化数据库

initdb --locale=C -E UTF-8 /opt/homebrew/var/postgres

启动服务

brew services start postgresql
``

### 客户端登录

psql postgres


### 创建用户

CREATE ROLE postgres WITH LOGIN PASSWORD 'postgres';
ALTER ROLE postgres CREATEDB;



### 使用 navcat 链接
![](/i/l/?n=23&i=blog/2697130/202308/2697130-20230811093841979-1368573185.png)

标签:2697130,postgresql,postgres,Mac,ROLE,安装,###
From: https://www.cnblogs.com/guanchaoguo/p/17622241.html

相关文章

  • Centos7 yum安装Chrome浏览器
    一.创建yum源文件cd/etc/yum.repo.d/touchgoogle-chrome.repo二.输入yum源信息[google-chrome]name=google-chromebaseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearchenabled=1gpgcheck=1gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.p......
  • orchestrator系列(一)--简介及安装
    orchestrator是一款开源对MySQL复制提供高可用、拓扑的可视化管理工具,采用go语言编写,它能够主动发现当前拓扑结构和主从复制状态,支持MySQL主从复制拓扑关系的调整、支持MySQL主库故障自动切换(failover)、手动主从切换(switchover)等功能。orchestrator后台依赖于MySQL存储元数据......
  • centos 安装下载mongodb数据库
    mongodb下载安装官网:https://www.mongodb.com/try/download/communitytar-zxvfmongodb-linux-x86_64-rhel70-4.4.17.tgzmvmongodb-linux-x86_64-rhel70-4.4.17/usr/local/mvmongodb-linux-x86_64-rhel70-4.4.17/mongodbcd/usr/local/mongodbmkdirdatalogscd......
  • centos7.X安装mysql5.7 – 东凭渭水流
    1.下载mysql5.7 可以使用windows下载好后上传至Linux。网络条件好的推荐使用 wgethttps://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.43-1.el7.x86_64.rpm-bundle.tar2.解压tar-xvfmysql-5.7.43-1.el7.x86_64.rpm-bundle.tar(不带z)ps:由于centos自带mariadb,......
  • 微信抢红包操作步骤及需要安装软件的步骤
    微信抢红包操作步骤:打开微信,进入聊天窗口。在聊天窗口中,如果有红包消息会显示“红包”字样,点击这条消息。在红包界面,点击“抢红包”按钮。如果是口令红包,需要输入正确的口令才能打开红包。打开红包后会显示红包金额,点击“开”即可领取红包。返回到聊天窗口或者退出微信。......
  • Spark安装(黑马程序员文档)
    SparkLocal环境部署下载地址Sparkhttps://mirrors.tuna.tsinghua.edu.cn/apache/spark/spark-3.4.1/Anacondahttps://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/?C=M&O=A条件PYTHON推荐3.8JDK1.8AnacondaOnLinux安装本次课程的Python环境需要安装到Linux......
  • win7 + cygwin + nodejs很详细的安装步骤
    win7下安装node.js详细步骤1.下载cygwin:http://cygwin.com/setup.exe2.安装cygwin几个要点:(1)InstallfromInternet,安装程序在后面步骤会下载大量文件。(2)RootDirectory,是Cygwin的安装目录。(3)LocalPackageDirectory,是存放所有下载文件的目录,子目录名即下载镜像网址,子目录下的rele......
  • centos安装Ruby
    一、使用yum包管理器安装Ruby在CentOS系统上安装Ruby的最简单方法是通过yum包管理器。在撰写本文时,CentOS存储库中的版本是2.0.0,这已经过时了。使用以下命令安装ruby软件包:sudoyuminstallruby安装完成后,您可以通过输入查看Ruby版本命令来验证它是否成功:ruby–version......
  • WEB自动化-Allure报告-Allure安装和简单用法
    WEB自动化测试可以借助Allure生成美观的测试报告。1、安装工具及配置环境变量1.安装JDK1.8才可运行allure,直接百度,一大堆2.下载Allure的安装包(版本号:2.13.5)https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/3.解压Allure压缩包......
  • 在Centos-linux上下载安装redis
    一、下载参考redis官网提供的操作指南。官网地址https://redis.io/download创建目录下载压缩包wgethttps://download.redis.io/releases/redis-7.0.7.tar.gz解压tarxzfredis-7.0.7.tar.gz二、安装进入文件夹目录,进行编译(注意:此目录下有redis说明文件“README.md”,有时......