NCS - Documents
Go to Portal
  • NIPA Cloud Space Overview
    • Welcome to NIPA Cloud Space documentation
    • NCS User Account
      • Create NIPA Cloud Space Account
      • Loging in to Nipa Cloud Space
      • Reset NCS Password
      • Activating Two-Factor Authentication
      • Deactivating Two-Factor Authentication
    • Co-working Projects
      • Create Co-working Project
      • Manage Project Member
      • Exporting Resource List
    • Billing & Wallet
      • Topup a Project Wallet
      • Redeem Voucher
      • Insufficient Wallet Balance
  • COMPUTE
    • Compute Instance
      • What is OS Status?
      • Launching Compute Instance
      • Managing Instance
        • Stop
        • Start
        • Restart
        • Resize (Change Machine Type)
        • Take Snapshot
        • Auto Backup
        • Reset Linux "root" Password
        • Reset Windows "Administrator" Password
      • SSH to Linux Compute Instance
        • Converting Key Pair for PuTTy
        • Windows Client using Key Pair
        • Windows Client using Password
        • MacOS/Linux using Key Pairs
        • MacOS/Linux using Password
      • Remote Desktop to Windows Instance
      • Setting Docker Image Caching
      • Renaming Instance
      • Exporting Instance List
      • How to change Compute Instance hostname
      • How to install QEMU Guest Agent
      • How to fix update kernel for RHEL
      • How to Update Rocky Linux 9
      • How to Upgrade Rocky Linux to 9.4
      • How to change RDP port on Windows
    • Compute Image
      • Create Image From a Bootable Volume
      • Importing Your Own Image
      • Export Image
      • Share Image to Between Projects
      • Exporting Image List
    • Key Pair
      • Managing Key Pair(s)
      • Creating a New Key Pair
      • Importing an Existing Key Pair
    • Deployment Script
      • Managing Deployment Script
      • Create a Deployment Script
      • Clone a Deployment Script
      • Edit a Deployment Script
      • Delete a Deployment Script
  • STORAGE
    • Block Storage
      • Managing Volume(s)
        • Create From Blank
        • Create From an Image
        • Create From a Volume
        • Create From a Snapshot
        • Transferring a Volume
        • Accepting a Tranferred Volume
        • Renaming a Volume
        • How to Change Volume Type
      • Managing Snapshot(s)
        • Create a Snapshot
        • Renaming a Volume Snapshot
      • Exporting Volume and Volume Snapshot List
    • Object Storage (S3)
      • Migrate file S3 AWS to S3 NIPA
      • Create an Object Storage Bucket
      • Delete an Object Storage Bucket
      • Create an Object Storage Sub-User
      • Regenerate Sub-User's Access Key
      • Revoke Sub-User's Access Key
      • Create Bucket Policy
      • Bucket Versioning
      • Access S3 Bucket with Cyberduck
        • Upload Files to a Bucket
        • Share File via Public Link
      • Access S3 Bucket with s3cmd
        • Basic command
        • การ set ACL สำหรับการเปิดใช้งาน Objects แบบ public
        • การสร้าง Presigned URL สำหรับการใช้งานชั่วคราว
      • Mount S3 Bucket on instances with s3fs-fuse
      • Access S3 buckets With AWS S3 Client SDK
        • S3Client Configuration
        • Basic Command
        • Multipart Upload
      • Access S3 buckets with internal network for NCS instance
      • Delete Lifecycle Policies
      • Move Objects Lifecycle Script
      • Configure a static website using S3 Bucket
    • NIPA Drive
      • Purchasing a Drive
  • NETWORKING
    • Networking
      • Managing VPC Network(s)
        • Create a Network
        • DHCP Setting
        • Create Port
        • Create Router
      • Managing Security Group(s)
        • Create a New Security Group
        • Create Security Group Presets
      • Managing External IP(s)
        • Create an External IP
        • Exporting External IP List
      • NAT Gateway with Ubuntu (VM)
      • NAT and VPN Gateway on NCS with Pfsense-2.6.0
  • LOAD BALANCING
    • Load Balancer as a Service
      • Create Load Balancer
      • Using Network Load Balancing
      • Using Application Load Balancing
      • Renaming a Load Balancer
      • Exporting Load Balancer List
      • Monitoring Load Balancer Using Prometheus
    • SSL Certificate
      • Import SSL Certificate
  • DATABASE AS A SERVICE
    • SQL Database
      • Create SQL Database Instance
        • Create MySQL Database Instance
      • Manage SQL Database Instance
        • Reboot Database Service
        • Delete Database Instance
        • Online Extend Storage Size
        • Edit Allowed CIDR
      • Auto-Scaling SQL Database Storage
        • Enable Auto-Scaling
        • Disable Auto-Scaling
        • Edit Auto-Scaling
      • Manage SQL Database Root User
        • Enable Root User
        • Reset Root User Password
      • Manage SQL Database Schema
        • Create Database Schema
        • Delete Database Schema
      • Manage SQL Database User
        • Create Database User
        • Delete Database User
        • Reset Password
        • Edit Access
      • Manage SQL Database Backup
        • Create Backup
        • Create A New SQL Database Instance From Backup
        • Delete Backup
      • Manage SQL Database Logs
        • Enable Logs
        • Disable Logs
        • Refresh Logs
        • Load More Logs
      • Manage Monitoring User
        • Create Monitoring User
        • Delete Monitoring User
      • Monitor SQL Database with Percona Monitoring and Management (PMM)
  • SCHEDULING
    • Schedules
      • Create Schedule
    • Jobs
  • Public API
    • What is NCS Public API ?
      • Download NCS Project RC File
      • Getting Start with NCS Public API
        • Using OpenStack Client Tool
        • Using REST API
        • Terraform with Openstack
        • Auto-scaling OpenStack Instances with Senlin and Prometheus
          • Installation Prometheus
          • Installation Alertmanager
  • MIGRATION
    • Migrating Linux VM from vSphere to NCS
    • Migrating Windows VM from vSphere to NCS
  • Customer Support
    • Having Problem Before Access a Project
    • Having Problem In a Project
  • Tutorial
    • My First Website
    • Access MySQL Database With MySQL Workbench
    • Pritunl for VPN server
    • Install Rancher Server with Docker Quick Start
      • Create RKE2 Cluster via Rancher Dashboard
    • Install odoo18 with external database
    • How to use LBaaS for mysql Load Balancing
  • Release Notes
    • v5.0.X (v5.0.0-now)
      • v5.0.0
      • v5.1.0
      • v5.2.0
      • v5.2.1
      • v5.2.2
      • v5.2.3
      • v5.2.4
      • v.5.3.0
      • v5.4.0
    • v4.19.X (v4.19.0-v4.19.3)
      • v4.19.0
      • v4.19.1
      • v4.19.2
      • v4.19.3
    • v4.18.X (v4.18.0-v4.18.2)
      • v4.18.0
      • v4.18.1
      • v4.18.2
    • v4.17.X (v4.17.0-v4.17.3)
      • v4.17.0
      • v4.17.0.1
      • v4.17.1
      • v4.17.2
      • v4.17.3
    • v4.16.X (v4.16.0-v4.16.5)
      • v4.16.0
      • v4.16.1
      • v4.16.2
      • v4.16.3
      • v4.16.4
      • v4.16.5
    • v4.15.X (v4.15.0-v4.15.9)
      • v4.15.0
      • v4.15.1
      • v4.15.2
      • v4.15.3
      • v4.15.4
      • v4.15.5
      • v4.15.6
      • v4.15.7
      • v4.15.8
      • v4.15.9
    • v.4.14.X (v4.14.0-v4.14.2)
      • v.4.14.0
      • v4.14.1
      • 4.14.2
Powered by GitBook
On this page
  • Prerequisite
  • Instruction
  • 1. เปิดโปรแกรม MySQL Workbench
  • 2. สร้าง Connection เพื่อเข้าถึง Database
  • 3. คลิกที่ Connection เพื่อเข้าถึง Database

Was this helpful?

  1. Tutorial

Access MySQL Database With MySQL Workbench

ตัวอย่างเบื้องต้นสำหรับการเข้าใช้งาน SQL Database ผ่าน MySQL Workbench

PreviousMy First WebsiteNextPritunl for VPN server

Last updated 1 year ago

Was this helpful?

Prerequisite

  • มี MySQL database instance สำหรับการใช้งาน MySQL database ()

  • มีโปรแกรมสำหรับเข้าถึง MySQL database เช่น MySQL Workbench (ดาวน์โหลดได้ที่ )

  • มี database user สำหรับเข้าถึง MySQL database ()

Instruction

วิธีเข้าถึง MySQL database ด้วย MySQL Workbench มีดังนี้

1. เปิดโปรแกรม MySQL Workbench

ดับเบิลคลิกที่ icon ดังรูป เพื่อเปิดโปรแกรม MySQL Workbench

จะปรากฎหน้า MySQL Connections เป็นหน้าเริ่มต้น ดังนี้

2. สร้าง Connection เพื่อเข้าถึง Database

2.1 คลิกเครื่องหมายบวก (+) ข้างหัวข้อ MySQL Connections ดังภาพ เพื่อเปิดหน้าต่าง Setup New Connection

จะปรากฎหน้าต่าง Setup New Connection ดังนี้

2.2 กำหนด Connection Name

ระบุชื่อของ connection นี้ ที่ช่อง Connection Name

2.3 กำหนด Connection Method เป็น Standard (TCP/IP)

2.4 กรอก Hostname ของ Database

กรอก Hostname ของ database ซึ่งเป็นเลข external IP ของ database instance โดยดูได้จาก หน้า database instance และ database instance detail

2.5 กรอก Username

กรอก username ของ database user ที่จะใช้เข้าถึง database โดย host ที่จะเข้าถึง ต้องมีเงื่อนไขตรงตามขอบเขตการเข้าถึงของ database นั้น ๆ ที่กำหนดไว้

กรณีเชื่อมต่อกับ database ที่สร้างบน NCS สามารถดูรายการ database user และเงื่อนไขการเข้าถึง (allowed hosted) ได้ที่หน้า Database Instance Detail > Access Management ดังภาพ

2.6 กรอก Password

คลิกที่ปุ่ม 'Store in Keychain ...' จากนั้น จะปรากฏหน้าต่าง Store Password for Connection ขึ้นมา

กรอก password ของ database user ที่กำหนดไว้ แล้วคลิก OK เพื่อยืนยัน

2.7 ยืนยันคำสั่งสร้าง Connection

คลิกปุ่ม OK เพื่อยืนยันคำสั่งสร้าง connection

เมื่อสร้างสำเร็จ จะปรากฏรายการ connection ที่หน้า MySQL Connections ดังนี้

3. คลิกที่ Connection เพื่อเข้าถึง Database

คลิกที่ connection เพื่อเข้าสู่ MySQL database

เมื่อคลิกแล้ว จะปรากฏหน้าต่าง SQL editor ขึ้นดังภาพ แสดงว่าเข้าถึง MySQL database ได้สำเร็จ

ขั้นตอนการสร้าง MySQL Database Instance
https://dev.mysql.com/downloads/workbench/
ขั้นตอนการจัดการ Database User
icon ของ โปรแกรม MySQL Workbench
หน้า MySQL Connections
ปุ่มเพื่อเปิดหน้าต่าง Setup New Connection
หน้าต่าง Setup New Connection
กำหนด Connection Name
เลือก Standard (TCP/IP)
กรอก Hostname ของ Database
External IP ของ Database Instance ที่หน้า Database Instance
External IP ของ Database Instance ที่หน้า Database Instance Detail
กรอก Username
แสดงรายการ Database User ของ Database Instance
ปุ่ม Store in Keychain ...
หน้าต่าง Store Password for Connection
กรอก Password
ยืนยันคำสั่งสร้าง Connection
แสดงรายการ Connection ที่ได้ทำการสั่งสร้างไว้
คลิกที่ Connection ที่ทำการสร้างไว้
แสดงหน้าต่างสำหรับจัดการ database