Official Oracle Cloud Infrastructure SDK for managing MySQL Database Service resources (DB systems, backups, channels, configurations). Current stable version is 2.132.0. Released as part of the oci-typescript-sdk monorepo, updated frequently alongside OCI API changes. Provides full TypeScript types and supports all MySQL service operations via OCI API. Differentiators: first-party Oracle SDK with comprehensive coverage of MySQL service lifecycle, authentication via API keys or instance principals, and integration with OCI IAM policies.
npm install oci-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to authenticate using OCI config file and list MySQL DB systems in a compartment.
Use async iterables: for await (const page of client.listDbSystemsPaginators(listDbSystemsRequest)) { ... }Set endpoint via client constructor: new MysqlClient({ authenticationDetailsProvider, endpoint: 'https://mysql.us-phoenix-1.oci.oraclecloud.com' })Ensure provider is initialized: const provider = new common.ConfigFileAuthenticationDetailsProvider();
Update imports: import { requests, responses } from 'oci-mysql';Use ConfigFileAuthenticationDetailsProvider or ResourcePrincipalAuthenticationDetailsProvider.
Ensure you import models from 'oci-mysql' and reference them as 'models.MysqlDbSystem'.
Use ESM imports: import { common } from 'oci-common';Set endpoint to regional format: 'https://mysql.us-phoenix-1.oci.oraclecloud.com' (or use default if in that region).
Provide compartmentId as a string in the request object.