- Documentation
RDS for MySQL
SDK reference
V2(2022-01-01)
Go SDK
Initializing the client
Go SDK
Initializing the client
Initializing the client
The MySQL Go SDK supports initializing the client through a session. A MySQL client created through a session reuses underlying HTTP/HTTPS resources (connections or requests). When you need to initialize multiple clients for operations, creating them through a session can improve client performance. This article describes how to initialize the client through a session.
Prerequisites
- A Volcano Engine account has been registered with real name authentication completed. For specific steps, refer to Create account and Verify account.
- The Access Key ID (AK) and Secret Access Key (SK) of the account have been obtained. For instructions, refer to View AKSK information.
- The regions supported by RDS for MySQL have been obtained. Refer to Service Address.
Initializing the client
Use the following code to initialize the client.
Last updated: 2025.12.04 11:25:46