Quick Start产品文档

Similar documents
Get Started产品文档

Domain Management产品文档

Microsoft Word - template.doc

ebook140-8

ebook140-9

IP505SM_manual_cn.doc

AL-M200 Series

入學考試網上報名指南

ch_code_infoaccess

1.ai

Windows XP

PowerPoint Presentation

CANVIO_AEROCAST_CS_EN.indd

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

1 SQL Server 2005 SQL Server Microsoft Windows Server 2003NTFS NTFS SQL Server 2000 Randy Dyess DBA SQL Server SQL Server DBA SQL Server SQL Se

Guide to Install SATA Hard Disks

从《动物福,本网站受美国法律保护 利法》看美国的动物保护——萧冰

RunPC2_.doc

K7VT2_QIG_v3

K301Q-D VRT中英文说明书141009

Microsoft Word - HSK使用手册.doc

LH_Series_Rev2014.pdf

Oracle 4

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

epub 61-2

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

Chn 116 Neh.d.01.nis

Microsoft Word - SupplyIT manual 3_cn_david.doc

1. 請 先 檢 查 包 裝 內 容 物 AC750 多 模 式 無 線 分 享 器 安 裝 指 南 安 裝 指 南 CD 光 碟 BR-6208AC 電 源 供 應 器 網 路 線 2. 將 設 備 接 上 電 源, 即 可 使 用 智 慧 型 無 線 裝 置 進 行 設 定 A. 接 上 電 源

Abstract Since 1980 s, the Coca-Cola came into China and developed rapidly. From 1985 to now, the numbers of bottlers has increased from 3 to 23, and

Microsoft Word - CX VMCO 3 easy step v1.doc

2015年4月11日雅思阅读预测机经(新东方版)

投影片 1

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Microsoft Word - ChineseSATII .doc

Chapter 2

untitled

2005 5,,,,,,,,,,,,,,,,, , , 2174, 7014 %, % 4, 1961, ,30, 30,, 4,1976,627,,,,, 3 (1993,12 ),, 2

Logitech Wireless Combo MK45 English

RAID RAID 0 RAID 1 RAID 5 RAID * ( -1)* ( /2)* No Yes Yes Yes A. B. BIOS SATA C. RAID BIOS RAID ( ) D. SATA RAID/AHCI ( ) SATA M.2 SSD ( )

Microsoft Word - Final Exam Review Packet.docx

PPBSalesDB.doc

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南

IC-900W Wireless Pan & Tilt Wireless Pan & Tilt Remote Control / Night Vision FCC ID:RUJ-LR802UWG

穨control.PDF

f2.eps

ansoft_setup21.doc

(Microsoft Word - \262\263\250\245\260\ _combined version-2)

Some experiences in working with Madagascar: installa7on & development Tengfei Wang, Peng Zou Tongji university

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

软件概述

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

BC04 Module_antenna__ doc

VASP应用运行优化

Ác Åé å Serial ATA ( Sil3132) S A T A (1) SATA (2) BIOS SATA (3)* RAID BIOS RAID (4) SATA (5) SATA (a) S A T A ( S A T A R A I D ) (b) (c) Windows XP

2017 CCAFL Chinese in Context


2015 Chinese FL Written examination

2 response personnel to speed up the rescue operations after various natural or man-made disasters. Keywords: SMS, Database, Disaster

中国人民大学商学院本科学年论文

Chinese oil import policies and reforms 随 着 经 济 的 发 展, 目 前 中 国 石 油 消 费 总 量 已 经 跃 居 世 界 第 二 作 为 一 个 负 责 任 的 大 国, 中 国 正 在 积 极 推 进 能 源 进 口 多 元 化, 鼓 励 替 代

Microsoft Word _4.doc

管道建模基础.ppt

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8

WTO

2008 Nankai Business Review 61

Microsoft PowerPoint - ARC110_栾跃.ppt

Microsoft PowerPoint _代工實例-1

錄...1 說...2 說 說...5 六 率 POST PAY PREPAY DEPOSIT 更

2

穨IC-1000

Microsoft PowerPoint - ~ ppt

Microsoft Word - Front cover_white.doc

國立中山大學學位論文典藏.PDF

Cadence SPB 15.2 VOICE Cadence SPB 15.2 PC Cadence 3 (1) CD1 1of 2 (2) CD2 2of 2 (3) CD3 Concept HDL 1of 1

untitled

untitled

國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 表 11 國 立 政 治 大 學 教 育 學 系 博 士 班 資 格 考 試 抵 免 申 請 表 論 文 題 目 申 報 暨 指 導 教 授 表 12 國 立 政 治 大 學 碩 博 士 班 論

IP Access Lists IP Access Lists IP Access Lists

5in1_eDVR_Manual_Chinese.cdr

自由軟體教學平台

GoFlex Home UG Book.book

1505.indd

Transcription:

腾讯云 CDB for PostgreSQL Quick Start 产品文档

版权声明 2015-2016 腾讯云版权所有 本文档著作权归腾讯云单独所有, 未经腾讯云事先书面许可, 任何主体不得以任何形式复制 修改 抄袭 传 播全部或部分本文档内容 商标声明 及其它腾讯云服务相关的商标均为腾讯云计算 ( 北京 ) 有限责任公司及其关联公司所有 本文档涉及的第三方 主体的商标, 依法由权利人所有 服务声明 本文档意在向客户介绍腾讯云全部或部分产品 服务的当时的整体概况, 部分产品 服务的内容可能有所调整 您所购买的腾讯云产品 服务的种类 服务标准等应由您与腾讯云之间的商业合同约定, 除非双方另有约定, 否则, 腾讯云对本文档内容不做任何明示或模式的承诺或保证 第 2 页共 15 页

文档目录 文档声明... 2 Initialize Instance... 4 Obtain Access Address... 6 Connect Instance... 8 Data Import to PostgreSQL Instance... 12 Notes... 15 第 3 页共 15 页

Initialize Instance Initialization (batch initialization) is required for the purchased Cloud Database (PostgreSQL) instances before you can use them, as shown below: The following parameters need to be initialized: Admin user name: Case-insensitive, start with letter and end with letter or number. 16 characters at most. You cannot use: postgres Admin password: The password should be a combination of 8-16 characters comprised of at least two of the following types: letters, numbers, and special characters (!, @, #, $, %, ^, *, (, )). You can change it later in "Account Management". 第 4 页共 15 页

Supported character set: global instance character set. This cannot be changed once determined. (Under instances, global character set can be different from database. You can configure this when creating libraries) 第 5 页共 15 页

Obtain Access Address PostgreSQL provides both private and public network access addresses. 1. Obtaining the Private Network Access Address You can obtain the private network access address of an instance on the Instance Details page. Note that the private network access address refers to the VIP. The database instance is accessed by connecting to the gateway cluster rather than the database instance CPM. Therefore, the private IP does not change during CVM delivery failure or master/slave switch. From a CVM that resides in the same network as PostgreSQL, you can directly connect to the instance's private network address to access PostgreSQL services. (Note: you may need to install the client first) 2. Obtaining the Public Network Access Address You can obtain the public network access address of an instance on the Instance Details page. Note: Public network access address can only be used for daily database management. Public 第 6 页共 15 页

network traffic may incur a fee. For more information, please see Product Prices. 第 7 页共 15 页

Connect Instance You can use any standard SQL client to connect to your instance once it has been initialized. Next, we will provide an example showing how to connect to PostgreSQL instance using pgadmin. 1. Download and Install pgadmin You can download and install pgadmin from https://www.pgadmin.org/download/. 2. Add Server Click "File" menu and select "Add Server". 3. Create Database Connection In the "New Server Registry" dialog, enter name, CVM IP address, port number, user name and password. You can find the CVM IP address and port number from the PGSQL instance management page. Click "OK" once you've entered the information. 第 8 页共 15 页

In the object browser menu in the left, double-click "server groups" to expand the list. Select the connected server (database instance) and choose database name. 第 9 页共 15 页

4. Use pgadmin Launch the PSQL console. Click the icon as shown in the figure and choose PSQL CONSOLE. Now, you can work with your database in the console. 第 10 页共 15 页

第 11 页共 15 页

Data Import to PostgreSQL Instance You can restore data backup files into the target CDB for PostgreSQL by using PostgreSQL logical backup. 1. Prepare PostgreSQL Instance Purchase PostgreSQL instance, initialize instance and acquire connection address. Make sure the initialization character set is consistent with that of the original instance. 2. Logical Back-up Original Instance Data Connect to the local (source) PostgreSQL database using PostgreSQL client. Execute the following command to back up data. pg_dump -U username -h hostname -p port databasename -f filename Parameter description: username: user name of local database. hostname: host name of local database. You can use "localhost" if you're logging in from local database host. port: port number of local database. databasename: Name of local database to be backed up. filename: Name of the generated backup file. For example, the database user "pgtest" wants to back up local PostgreSQL database. The user should use the following command to back up data after logging in to PostgreSQL host. 第 12 页共 15 页

pg_dump -U pgtest -h localhost -p 4321= pg001 -f pg001.sql 3. Migrate Data Through CVM It is suggested that you upload data to CVM in a secure way (such as encrypted compression) and restore data to target PostgreSQL via private network. Log in to CVM. In the PostgreSQL client, execute the following command to import data to target PostgreSQL. psql -U username -h hostname -d desintationdb -p port -f dumpfilename.sql Parameter description: username: user name of the PostgreSQL database on RDS. hostname: PostgreSQL database address on RDS. port: port number of the PostgreSQL database on RDS. databasename: PostgreSQL database name on RDS. filename: File name of the local backup data. For example: psql -U pgtest -h 10.xxx.xxx.xxx -d pg001 -p 4321 -f pg001.sql Certain permission-related WARNING or ERROR may occur during the data import process, due to possible permission configuration differences between source and target database. These can be ignored. 4. Migrate Data Through Internet You can also import data directly through the Internet by using tools such as pgadmim, if the data volume is low (e.g. no more than 10 GB). For example: 第 13 页共 15 页

第 14 页共 15 页

Powered by TCPDF (www.tcpdf.org) Quick Start 产品文档 Notes Note 1. PostgreSQL already provides account with permissions including creating/modifying databases, creating/modifying accounts. But it does not provide super admin account. 2. It is recommended that you use public network address for routine maintenance, rather than connecting business servers. 3. The network to which the instance belongs can no longer be modified once the instance has been created. 4. Why is occupied disk capacity larger than actual data volume? Updates will cause xlog to rapidly grow in size. The logs occupy disk space if the system doesn't archive and delete them in time. Or, the query operations include large number of sort and connection operations involving huge amount of data. This process produces temporary tables which will overflow to the disk and occupy disk space for a short time. 5. Enable/Use Plug-ins Most commonly used plug-ins are supported by Tencent Cloud PostgreSQL and can be directly used. Certain plug-ins require super admin permission to be enabled. You can enable them from the Tencent Cloud console. Or you can contact Tencent personnel and describe your instance ID and name of the plug-in to enable it. 第 15 页共 15 页