Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

digital ocean sql_require_primary_key

vickzkater answered on June 8, 2023 Popularity 3/10 Helpfulness 3/10

Contents


More Related Answers


digital ocean sql_require_primary_key

0

From March 2022, you can now configure your MYSQL and other database by making a request to digital ocean APIs. Here's the reference: https://docs.digitalocean.com/products/databases/mysql/#4-march-2022

STEPS TO FIX THE ISSUE:

Step - 1: Create AUTH token to access digital ocean APIs. https://cloud.digitalocean.com/account/api/tokens

STEP - 2: Get the database cluster id by hitting the GET request to the below URL with bearer token that you have just generated above.

URL: https://api.digitalocean.com/v2/databases

Step - 3: Hit the below URL with PATCH request along with the bearer token and payload.

URL: https://api.digitalocean.com/v2/databases/{YOUR_DATABASE_CLUSER_ID}/config

payload/body (raw - JSON): {"config": { "sql_require_primary_key": false }} 


*Notes: you can use POSTMAN for hit APIs

Popularity 3/10 Helpfulness 3/10 Language sql
Link to this answer
Share Copy Link
Contributed on Jun 08 2023
vickzkater
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.