Help Center/
FunctionGraph/
User Guide (Kuala Lumpur Region)/
FAQs/
External Resource Access FAQs/
How Does a Function Access the MySQL Database?
Updated on 2023-07-06 GMT+08:00
How Does a Function Access the MySQL Database?
Perform the following operations:
- Check whether the MySQL database is deployed in a VPC.
- Yes: Configure the same VPC and subnet as the MySQL database for the function by referring to Configuring VPC Access.
- No: See How Do I Configure External Network Access?
- Search for MySQL templates and select the one with the desired runtime, as shown in Figure 1. Set the parameters as required and click Create Function.
- After the MySQL function is created, choose Configuration > Environment Variables, enable encryption as required (see Figure 2), and click Save.
If the function needs to access RDS APIs, create an agency and grant required permissions.
Parent topic: External Resource Access FAQs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot