From 25ee5d956711ec2cb0ad9d2fd0e57ac030d5a61e Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Thu, 26 Oct 2023 17:35:02 -0400 Subject: [PATCH 1/3] SQL Server doc modifications --- .DS_Store | Bin 0 -> 8196 bytes .../google-cloud-sql-sqlserver.md | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ecc1e173da2817e5bd101da44ef9164919d922fa GIT binary patch literal 8196 zcmeHMU2oGc6us`+HC@H%1BfAn6p7buY%nG!UP`+PCXElR10DdCbnUjXG^v`DB27bm zhu^?o;F&+d&)}UWIM?>7IPIi8A<%5ezK(N_uXB8z)GiT;%AmDMv_M1-GTTxS#gxSN zIZvdFZn*&~z$Xf6nS7LcbToms4ORiGfK|XMU=^?m{0j=;o6X5NBG5tSzkqR)I+cc<(+(Rr07$2g&{WmLKjl{jiDqyrdo? zFaMSawKOLNvrB%8^DV`>3_s84Deck@ZBd0@ptgnUM>sX;Qp;qEn<@4+oGOGAP>hj= zIAv&152c5eHtKzp9<|U}s#@KMV1uM~C;{kGwUPdDCEBuBAlaxw=g zP9ee3Cn6?8D*82{r~@A#F`}+~u8C0*tC_@?XkVVS3^A$*Pjd)<7yR)UO@C6)BtOIR zox-q6NzAN{i7uWwJwL2c5}VW5hz`wOr8Y_AX|E9tsB2?Cv~c& z(9py{&zopkLVwSZtMoX{WjzdTae`Zc$8FQ2fIr+Cn0@hXyt()*xo3;`-jzp4?m(kP5n0oM% zUJI;J5}gIQ!>h&|hty>%t~rc)`aSZ!+4DP5yt48`WM;Ct*}Ri?iq6~mVK}VEUOb2@ zUjH>;?S`S>Jgs}pm!0;oQMytMgV^f??Y<;*T5Ukyyy^t4a99ZkK`WBny1L;MoI;~? z{rGrwedFGuyLNx=WYIm|xU+)#-Sv}`f^+rO?FT!JBflGj9QH^;|F)n@>Uvy$L2dlt zAL{+U4+CECjCUZ&0MdEXM2;qe;V?)FlT)vpNvUN3B#{nYj~poR^nj65|1&Z5>r`Tu#kvKXs?Rp38WKx8-Tn-vWH^!t~74&H0K$nTIjF>a)+q@a-7 laag$>haLZ6h`I|XbIRI|ltl~DUq1-2-+!sQEiSeKe*j4=%VPil literal 0 HcmV?d00001 diff --git a/site/docs/reference/Connectors/materialization-connectors/google-cloud-sql-sqlserver.md b/site/docs/reference/Connectors/materialization-connectors/google-cloud-sql-sqlserver.md index faab71842e..e0112f6771 100644 --- a/site/docs/reference/Connectors/materialization-connectors/google-cloud-sql-sqlserver.md +++ b/site/docs/reference/Connectors/materialization-connectors/google-cloud-sql-sqlserver.md @@ -75,7 +75,7 @@ materializations: ```sql USE ; -- 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:: TO flow_materialize; From a57ad5bee5638df424c26f8e8b19aecf58c76373 Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Fri, 27 Oct 2023 11:37:00 -0400 Subject: [PATCH 2/3] Updated MySQL docs to include user creation/authorization --- .../google-cloud-sql-mysql.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/site/docs/reference/Connectors/materialization-connectors/google-cloud-sql-mysql.md b/site/docs/reference/Connectors/materialization-connectors/google-cloud-sql-mysql.md index ae140b0867..9f32e855f8 100644 --- a/site/docs/reference/Connectors/materialization-connectors/google-cloud-sql-mysql.md +++ b/site/docs/reference/Connectors/materialization-connectors/google-cloud-sql-mysql.md @@ -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 .* 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). From 1dc2f71f316f407398fd30f41653a003a92c8675 Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Fri, 27 Oct 2023 12:08:56 -0400 Subject: [PATCH 3/3] Cleaning up commit --- .DS_Store | Bin 8196 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index ecc1e173da2817e5bd101da44ef9164919d922fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8196 zcmeHMU2oGc6us`+HC@H%1BfAn6p7buY%nG!UP`+PCXElR10DdCbnUjXG^v`DB27bm zhu^?o;F&+d&)}UWIM?>7IPIi8A<%5ezK(N_uXB8z)GiT;%AmDMv_M1-GTTxS#gxSN zIZvdFZn*&~z$Xf6nS7LcbToms4ORiGfK|XMU=^?m{0j=;o6X5NBG5tSzkqR)I+cc<(+(Rr07$2g&{WmLKjl{jiDqyrdo? zFaMSawKOLNvrB%8^DV`>3_s84Deck@ZBd0@ptgnUM>sX;Qp;qEn<@4+oGOGAP>hj= zIAv&152c5eHtKzp9<|U}s#@KMV1uM~C;{kGwUPdDCEBuBAlaxw=g zP9ee3Cn6?8D*82{r~@A#F`}+~u8C0*tC_@?XkVVS3^A$*Pjd)<7yR)UO@C6)BtOIR zox-q6NzAN{i7uWwJwL2c5}VW5hz`wOr8Y_AX|E9tsB2?Cv~c& z(9py{&zopkLVwSZtMoX{WjzdTae`Zc$8FQ2fIr+Cn0@hXyt()*xo3;`-jzp4?m(kP5n0oM% zUJI;J5}gIQ!>h&|hty>%t~rc)`aSZ!+4DP5yt48`WM;Ct*}Ri?iq6~mVK}VEUOb2@ zUjH>;?S`S>Jgs}pm!0;oQMytMgV^f??Y<;*T5Ukyyy^t4a99ZkK`WBny1L;MoI;~? z{rGrwedFGuyLNx=WYIm|xU+)#-Sv}`f^+rO?FT!JBflGj9QH^;|F)n@>Uvy$L2dlt zAL{+U4+CECjCUZ&0MdEXM2;qe;V?)FlT)vpNvUN3B#{nYj~poR^nj65|1&Z5>r`Tu#kvKXs?Rp38WKx8-Tn-vWH^!t~74&H0K$nTIjF>a)+q@a-7 laag$>haLZ6h`I|XbIRI|ltl~DUq1-2-+!sQEiSeKe*j4=%VPil