Skip to content

Commit

Permalink
Updated MySQL docs to include user creation/authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Wihl authored and Jon Wihl committed Oct 31, 2023
1 parent 25ee5d9 commit a57ad5b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,17 @@ To configure the connector, you must specify the database address in the format
You can find the host host in the GCP console as "Private IP Address". The pport is always `3306`. You may need to [configure private IP](https://cloud.google.com/sql/docs/mysql/configure-private-ip) on your database.
:::

3. Create the `flow_materialize` user with `All` privileges on your database. This user will need the ability to create and update the `flow_materializations` table.
```sql
CREATE USER IF NOT EXISTS flow_materialize
IDENTIFIED BY 'secret'
COMMENT 'User account for Flow MySQL data materialization';
GRANT ALL PRIVELEGES ON <database>.* TO 'flow_materialize';
```

4. In the Cloud Console, note the instance's host under Public IP Address. Its port will always be `3306`.
Together, you'll use the host:port as the `address` property when you configure the connector.

## Delta updates

This connector supports both standard (merge) and [delta updates](../../../concepts/materialization.md#delta-updates).
Expand Down

0 comments on commit a57ad5b

Please sign in to comment.