Skip to content

Commit

Permalink
docs: Cloud SQL Server and Cloud MySQL materialization changes (#1263)
Browse files Browse the repository at this point in the history
* SQL Server doc modifications

* Updated MySQL docs to include user creation/authorization

* Cleaning up commit

---------

Co-authored-by: Jon Wihl <[email protected]>
  • Loading branch information
jonwihl and Jon Wihl authored Dec 20, 2023
1 parent aa012d8 commit 5b1df14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,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
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ materializations:
```sql
USE <database>;
-- Create user and password for use with the connector.
CREATE LOGIN flow_materialize WITH PASSWORD = 'secret';
CREATE LOGIN flow_materialize WITH PASSWORD = 'Secret123!';
CREATE USER flow_materialize FOR LOGIN flow_materialize;
-- Grant control on the database to flow_materialize
GRANT CONTROL ON DATABASE::<database> TO flow_materialize;
Expand Down

0 comments on commit 5b1df14

Please sign in to comment.