Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.

On this page

Show all

Help Center/ FunctionGraph/ FAQs/ External Resource Access FAQs/ How Does a Function Access the MySQL Database?

How Does a Function Access the MySQL Database?

Updated on 2023-06-19 GMT+08:00

Perform the following operations:

  1. Check whether the MySQL database is deployed in a VPC.
  2. 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.
    Figure 1 Selecting a function template
  3. After the MySQL function is created, choose Configuration > Environment Variables, enable encryption as required (see Figure 2), and click Save.
    Figure 2 Enabling encryption
    NOTE:

    If the function needs to access RDS APIs, create an agency and grant required permissions.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback