当前位置: 首页 > news >正文

中国网上购物网站深圳百度竞价推广

中国网上购物网站,深圳百度竞价推广,idc数据中心,重庆餐饮加盟网站建设首先,建议看一下官方的安装文档PostgreSQL: Linux downloads (Ubuntu) PostgreSQL Apt Repository 简单的说,就是Ubuntu下的Apt仓库,可以用来安装任何支持版本的PgSQL。 If the version included in your version of Ubuntu is not the one…

首先,建议看一下官方的安装文档PostgreSQL: Linux downloads (Ubuntu)

PostgreSQL Apt Repository

简单的说,就是Ubuntu下的Apt仓库,可以用来安装任何支持版本的PgSQL。

If the version included in your version of Ubuntu is not the one you want, you can use the PostgreSQL Apt Repository. This repository will integrate with your normal systems and patch management, and provide automatic updates for all supported versions of PostgreSQL throughout the support lifetime of PostgreSQL.

sort by https://zhengkai.blog.csdn.net/

The PostgreSQL Apt Repository supports the current versions of Ubuntu:

  • kinetic (22.10, non-LTS)
  • jammy (22.04, LTS)
  • focal (20.04, LTS)
  • bionic (18.04, LTS)
  • LinuxDeepin V20 (DeepinV23应该也适用)

Installation steps

# Create the file repository configuration:
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'# Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

 

# Update the package lists:

# 配置源后请记得更新一次仓库

sudo apt-get update

# Install the latest version of PostgreSQL.
# 这里建议你安装一下pgsql-15,在2023往后的五年内,可以得到更好的支持。

# If you want a specific version, use 'postgresql-15' or similar instead of 'postgresql':

sudo apt-get -y install postgresql-15

 

Configuration Steps

装完就跑?太天真了,还有一小串step等着你配置呢,这个时候没什么user也没什么db

添加新用户和新数据库新建一个Linux新用户,设置密码

adduser dbuser


切换到postgres用户,将在postgres用户下创建新数据库用户:

sudo su - postgres


登录数据库: 

psql


设置密码:

\password postgres


创建数据库用户dbuser(刚才创建的是Linux系统用户),并设置密码:

CREATE USER dbuser WITH PASSWORD 'password';

创建用户数据库,这里为exampledb,并指定所有者为dbuser:

CREATE DATABASE exampledb OWNER dbuser;

将exampledb数据库的所有权限都赋予dbuser:

GRANT ALL PRIVILEGES ON DATABASE exampledb to dbuser;


退出控制台

\q

 用新用户登陆postgresql

psql -U dbuser -d bics_pro -h 127.0.0.1 -p 5432

如果你登陆过程中遇到Postgresql: password authentication failed for user  "postgres"

sudo -u postgres psql

Inside the psql shell you can give the DB user postgres a password:

ALTER USER postgres PASSWORD 'newPassword';

 

# 创建新表 
CREATE TABLE user_tbl(name VARCHAR(20), create_time TimeStamp);# 插入数据 
INSERT INTO user_tbl(name, create_time) VALUES('moshow', '2023-09-09');# 选择记录 
SELECT * FROM user_tbl;

Connect To Pgsql

Windows下一般推荐Navicat/PgAdmin/DbEaver/DataGrip

Linux下一般我用PgAdmin或者dbeaver(个人更喜欢,万能的连接工具)/DataGrip

这里举个例子,大多数工具初次使用都需要下载驱动,或者使用我的DBeaver-Driver-All ( https://github.com/moshowgame/dbeaver-driver-all )整合所有DBeaver的JDBC驱动包,供DBeaver使用,无需每次都搜索和下载,只需clone本项目即可,一个包包含几乎所有的驱动。

输入完整的登陆信息,数据库(刚才create的BICS_PRO),帐号秘密(dbuser/root123)

点击测试链接,首次连接需要下载驱动,网速允许的情况下,直接下载即可。或者提前准备好jar包。

测试成功。

可以看到我们刚才create的表user_tbl还在

END! 欢迎大家交流DeepinV20/V23使用心得。

http://www.wooajung.com/news/30953.html

相关文章:

  • 网站推广商品怎么做效果最好优化是什么梗
  • 网站建设的作用有哪些方面sem和seo是什么意思
  • 青岛人力资源招聘官网seo实战培训教程
  • 怎么做垂直网站seo推广软件哪个好
  • 怎么自己编码做网站搜索引擎优化论文
  • 个人可以做新闻网站吗其中包括
  • 南通网站建设空间网站排名大全
  • 山西住房和城乡建设部网站点击排名优化
  • 凡科做网站的模版在哪儿找关键词在线查询
  • 团购网站 模板职业培训网络平台
  • 重庆建设集团公司淘宝关键词优化软件
  • wordpress导入演示北京seo网站设计
  • 男女做网站免费刷赞网站推广qq免费
  • 有没有网站做lol赌博的武汉做seo
  • 网页作品集seo是什么及作用
  • 自建房设计软件免费周口seo公司
  • 24小时通过网站备案品牌型网站制作价格
  • web前端需要哪些技术seo外链资源
  • 备案的网站换空间win10优化工具
  • 做58同城那样的网站网络营销服务公司
  • 旅游网站建设的课题研究的主要内容正规专业短期培训学校
  • 广东建设工程注册执业中心网站怎么才能建立一个网站卖东西
  • 博客网站登录宣传推广渠道有哪些
  • 网站收录突然减少免费推广网站大全下载安装
  • 金华app网站开发百度云盘网页版
  • c#网站开发 pdf做搜索引擎推广多少钱
  • 网站搜索栏怎么做优化资源配置
  • 做内容的网站最近的新闻大事20条
  • 咸阳做网站的短视频培训要多少学费
  • 公司企业宣传片拍摄西安seo服务培训