Logo: Huawei Rds

Huawei Rds

Organisatioun
huaweicloud
huawei-rds

Use when creating, configuring, managing, or troubleshooting RDS instances on Huawei Cloud. Covers MySQL, PostgreSQL, SQL Server. Triggers: RDS, MySQL, PostgreSQL, database instance, backup, read replica. NOT for: GaussDB (use huawei-cloud-gaussdb-instance-management), DDS (use huawei-cloud-dds-dcs-instance-management).

Add to TypingMind

Iwwersiicht

Editeurhuaweicloud
Repositoryhuaweicloud-devkit
Skill-Nummhuawei-rds
Stären
70
Forks
12
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    huaweicloud huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Huawei Rds an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-rds
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-devkit.git /tmp/huaweicloud-devkit
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-devkit/plugins/huaweicloud-core/skills/huawei-rds .claude/skills/huawei-rds
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Huawei Rds an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Huawei Rds automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Huawei Rds net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Huawei Cloud RDS

STOP - Do not answer from general knowledge. Follow the procedure below.

Always run hcloud RDS <Operation> --help before constructing commands to discover exact parameter names and requirements.

Deployment Routing Guard

If this skill was reached via a DEPLOYMENT intent (the database is part of an application deployment, not a standalone ad-hoc operation), this is a cloud resource purchase: load huawei-iac first for orchestration (mandatory cost+balance gate, batch approval, session state, ordered destroy), then return here for the exact instance commands. Sandbox-deployed workloads (huawei-sandbox) bypass iac - no purchase involved.

Prerequisites

Before creating an RDS instance, you MUST have:

  • A VPC and subnet (see huawei-vpc)
  • A security group with database port open (MySQL=3306, PostgreSQL=5432, SQL Server=1433)
  • Run hcloud RDS ListFlavors --database_name=<engine> --cli-region=<r> to get spec codes

KooCLI Command Format

hcloud RDS <Operation> --cli-region=<region> [--key=value ...]
RuleDetail
Service nameRDS (uppercase)
OperationPascalCase: ListInstances, CreateManualBackup
Params--key=value format. JSON params: --key='{"k":"v"}'
Array params1-based: --instance_ids.1=xxx
Password paramConflicts with KooCLI system param; use --cli-jsonInput (see Critical Warnings)

Critical Warnings

TrapWhy
Engine version immutableCannot change MySQL to PostgreSQL in-place
Automated backups use OBSBackup storage incurs separate charges. Set retention period explicitly
Storage auto-scaling off by defaultEnable before storage runs out or instance goes read-only
--password conflicts with KooCLIUse --cli-jsonInput=<file> with JSON file (see --cli-jsonInput section below). The printf "b\n" workaround is broken in KooCLI 7.2.12+
Volume type must match flavorGeneral→CLOUDSSD; Dedicated→CLOUDSSD|ESSD; ARM→CLOUDSSD
Flavor not in regionAlways ListFlavors first. Spec codes vary by region
database_name is case-sensitiveUse MySQL / PostgreSQL / SQLServer / MariaDB — NOT lower-case mysql
Instance creation takes 3–8 minStatus: BUILD→MODIFYING→ACTIVE. Poll every 15s: hcloud RDS ListInstances --cli-region=<r> --instance_id=<id> | jq '.instances[0].status'
Body --region is requiredCreateInstance body requires --region=<r> (same as --cli-region) or DBS.280243
Restore creates new instanceNo in-place restore. Verify target flavor before restoring

Instance Management

List

bash
hcloud RDS ListInstances --cli-region=<r>
hcloud RDS ListFlavors --database_name=<engine> --cli-region=<r>
hcloud RDS ListDatastores --database_name=<engine> --cli-region=<r>
hcloud RDS ListEngineFlavors --instance_id=<id> --availability_zone_ids=<az> --ha_mode=<mode> --cli-region=<r>

Create Instance

bash
hcloud RDS CreateInstance --cli-region=<r> \
  --region=<r> \
  --name=<name> \
  --datastore.type=<engine> \
  --datastore.version=<version> \
  --flavor_ref=<flavor-id> \
  --volume.type=<vol-type> \
  --volume.size=<size> \
  --vpc_id=<vpc-id> \
  --subnet_id=<subnet-id> \
  --security_group_id=<sg-id> \
  --availability_zone=<az> \
  --charge_info.charge_mode=<mode>

--password conflicts with a KooCLI system param. Use --cli-jsonInput (see below). The printf "b\n" pipe workaround is broken in KooCLI 7.2.12+.

--cli-jsonInput for CreateInstance

json
{
  "path": {
    "project_id": "<project-id>"
  },
  "body": {
    "name": "<name>",
    "region": "<region>",
    "datastore": { "type": "<engine>", "version": "<version>" },
    "ha": { "mode": "single", "replication_mode": "semisync" },
    "flavor_ref": "<flavor-id>",
    "volume": { "type": "<vol-type>", "size": <gb> },
    "vpc_id": "<vpc-id>",
    "subnet_id": "<subnet-id>",
    "security_group_id": "<sg-id>",
    "availability_zone": "<az>",
    "password": "<pw>",
    "charge_info": { "charge_mode": "postPaid" }
  }
}

Save as rds-create.json then: hcloud RDS CreateInstance --cli-jsonInput=rds-create.json. For project_id, run hcloud IAM KeystoneListProjects.

ParamRequiredNote
--nameYesInstance name
--datastoreYes--datastore.type=<engine> --datastore.version=<version>
--flavor_refYesFrom ListFlavors output
--volumeYesType matching: General→CLOUDSSD, Dedicated→CLOUDSSD|ESSD, ARM→CLOUDSSD
--vpc_idYesMust exist in target region
--subnet_idYesMust exist in target region
--security_group_idYesMust have DB port open
--availability_zoneYesUse AZ code from NovaListAvailabilityZones
--charge_infoNo--charge_info.charge_mode=<mode>. Default postPaid (pay-per-use). Run --help for options
--passwordYes8-32 chars, uppercase+lowercase+digit+special
--portNoDefault 3306 (MySQL) / 5432 (PG) / 1433 (SQL Server)

Modify / Resize

bash
hcloud RDS StartInstanceRestartAction --instance_id=<id> --cli-region=<r>
hcloud RDS StartResizeFlavorAction --instance_id=<id> --flavor_ref=<new-id> --cli-region=<r>
hcloud RDS StartInstanceEnlargeVolumeAction --instance_id=<id> --volume_size=<gb> --cli-region=<r>
hcloud RDS StartFailover --instance_id=<id> --cli-region=<r>
hcloud RDS UpdateInstanceAlias --instance_id=<id> --alias=<new-name> --cli-region=<r>

Delete

bash
hcloud RDS DeleteInstance --instance_id=<id> --cli-region=<r>

Backup & Recovery

bash
hcloud RDS ShowBackupPolicy --instance_id=<id> --cli-region=<r>
hcloud RDS SetBackupPolicy --instance_id=<id> --backup_policy='{"keep_days":7,"period":"1,2,3,4,5,6,7","start_time":"00:00-01:00"}' --cli-region=<r>
hcloud RDS ListBackups --instance_id=<id> --cli-region=<r>
hcloud RDS CreateManualBackup --instance_id=<id> --name=<name> --cli-region=<r>
hcloud RDS ShowRecoveryTimeWindow --instance_id=<id> --cli-region=<r>
hcloud RDS CreateRestoreInstance --instance_id=<id> --backup_id=<id> --name=<new-name> --flavor_ref=<id> --cli-region=<r>

Manual backup deletion is irreversible. Verify backup ID before deleting.

Read Replicas

bash
# Create a read replica via CreateInstance with --replica_of_id
hcloud RDS CreateInstance --replica_of_id=<primary-id> --name=<name> --flavor_ref=<id> --volume.type=<vol-type> --volume.size=<size> --cli-region=<r>

Fault Diagnosis

bash
hcloud RDS ListErrorLogs --instance_id=<id> --start_date=2024-01-01T00:00:00Z --end_date=2024-01-31T23:59:59Z --cli-region=<r>
hcloud RDS ListSlowLogs --instance_id=<id> --start_date=... --end_date=... --cli-region=<r>
hcloud RDS ShowReplicationStatus --instance_id=<id> --cli-region=<r>
hcloud RDS ListInstanceDiagnosis --engine=<engine> --cli-region=<r>

Connecting

bash
hcloud RDS ListInstances --cli-region=<r>  # get private_ips + port
mysql -h <private_ip> -P 3306 -u root -p --ssl-mode=REQUIRED
psql -h <private_ip> -p 5432 -U root -d postgres

hcloud does NOT support SQL execution. Use a database client. For public access, bind an EIP (see huawei-vpc).

Database Client Acquisition

If a database client is not installed on the agent's machine, install one:

PlatformMySQLPostgreSQL
Linuxapt install mysql-client / yum install mysqlapt install postgresql-client
macOSbrew install mysql-clientbrew install libpq
WindowsDownload MySQL Workbench or winget install Oracle.MySQLDownload pgAdmin or winget install PostgreSQL.PostgreSQL
Python (any)pip install pymysql then python -c "import pymysql; ..."pip install psycopg2 then python -c "import psycopg2; ..."
Docker (any)docker run -it --rm mysql:8 mysql -h <ip> -u root -pdocker run -it --rm postgres:16 psql -h <ip> -U root

If no client can be installed, use the Huawei Cloud Data Studio console: https://console.huaweicloud.com/dms/

Mutating Operations (Require Approval)

OperationEffect
CreateInstanceNew instance (billing starts)
DeleteInstanceIrreversible data loss
StartResizeFlavorActionBrief interruption during switchover
StartInstanceEnlargeVolumeActionOnline, but irreversible
StartFailoverPrimary-standby switchover
CreateRestoreInstanceCreates new instance from backup
CreateManualBackupIncurs OBS storage charges
DeleteManualBackupIrreversible

Troubleshooting

ErrorRoot Cause -> Fix
Connection refusedSG missing DB port. Add ingress rule
Storage fullManual resize or enable auto-scaling
DBS.280241 Invalid storage typeVolume type doesn't match flavor group
DBS.280448 Sold outTry different volume type or AZ
Replication lagCheck ShowReplicationStatus. Consider read replica
Instance stuck BUILDINGCheck task status: hcloud RDS ListTasks
SYS.0403SCP policy denies this operation (e.g. security group rules, EIP binding). See huawei-vpc troubleshooting
EIP.7905EIP quota exceeded — cannot create new EIP for public access. See huawei-vpc troubleshooting

Security

  • MUST use security groups, not open 0.0.0.0/0
  • MUST enable SSL for connections
  • MUST store passwords in DEW/CSMS (see huawei-cloud-dew-key-management)
  • SHOULD enable audit logs for compliance
  • SHOULD set backup policy with >= 7 day retention

Cross-Skill References

  • VPC/Subnet/Security Group: huawei-vpc
  • DEW secrets: huawei-cloud-dew-key-management
  • EIP for public access: huawei-vpc
  • OBS for backup storage: huawei-obs

Heefeg gestallte Froen

Wat mécht de KI-Skill Huawei Rds?

Use when creating, configuring, managing, or troubleshooting RDS instances on Huawei Cloud. Covers MySQL, PostgreSQL, SQL Server. Triggers: RDS, MySQL, PostgreSQL, database instance, backup, read replica. NOT for: GaussDB (use huawei-cloud-gaussdb-instance-management), DDS (use huawei-cloud-dds-dcs-instance-management).

Firwat Huawei Rds op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Huawei Rds besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Huawei Rds an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-rds an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Huawei Rds benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Huawei Rds benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Huawei Rds domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Huawei Rds gratis?

Jo. huaweicloud huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇