forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2.7 KiB
2.7 KiB
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 section "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.
Parent topic: External Resource Access FAQs