Cách truy cập RDS từlocalBy Thanh Nguyen
View Slide
Điều kiện- Có thể truy cập VPN công ty- Cài đặt một trình quản lý cơ sở dữ liệu. Ví dụ:+ Mac và Windows: Sequel Pro, ...+ Linux: Dbeaver, …- Workflow:Port forwarding từ local <-> bastion host <-> RDS in AWS+ Để hiểu thì xem tutorial này: link
Port forwardingssh -i ~/.ssh/bastion_key.pem -NfC -L 7011:rds-name.cluster-xxx.region.rds.amazonaws.com:3306 [email protected]
Truy cập database với terminalmysql -h 127.0.0.1 -u db-user -D db-name -P 7011 -p
Tạo một kết nối trongtrình quản lý DBChú ý:- server host: ?- port: ?- User/password: ?