Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Để kết nối với RDS Instance có Database EngineMySQL hay Mariadb, bạn có thể sử dụng bất kì công cụ MySQL Client nào như mysqlclientmysql-client (CLI Client của MySQL phát triển), MySQL Workbench (GUI client của MySQL phát triển), Heidi,… cho các tác vụ OLTP.… 

Tương tự, đối với Postgresql, bạn có thể dùng các client như: psql (ClI Client do PostgreSQL phát triển), pgAdmin (GUI Client phổ biến),...

Ở bài hướng dẫn này, VNG Cloud sử dụng mysqlclient và mysql-client, MySQL Workbench và psql.


Table of Contents

Bước 0. Cài đặt client tool để kết nối:

Để cài đặt MySQL Workbench (Windows/Linux), bạn có thể download theo hướng dẫn của MySQL:

https://dev.mysql.com/downloads/workbench/


Để cài đặt MySQL-Client (Linux), bạn có thể cài đặt nhanh bằng:

Ubuntu:

Code Block
sudo apt-get install mysql-client

CentOS:

Code Block
sudo yum install mysql



Để cài đặt Psql (Linux/MacOS), bạn cài đặt như sau:

Ubuntu:

Code Block
sudo apt-get install postgresql-client


CentOS:


Code Block
sudo yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-redhat10-10-2.noarch.rpm

sudo yum install postgresql10


MacOS:


Code Block
brew install libpq




Bước 1. Xác định thông tin Endpoint & Port để truy cập:

...