From 9d70a397e4c2f27ee4cd6a8d8b3ed13254939973 Mon Sep 17 00:00:00 2001 From: goodfirm Date: Wed, 10 Apr 2024 14:36:20 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: goodfirm --- database/cockroachdb/TUTORIAL.md | 2 +- database/mysql/README.md | 2 +- database/mysql/mysql_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/database/cockroachdb/TUTORIAL.md b/database/cockroachdb/TUTORIAL.md index d8cea6159..f8c9e7c06 100644 --- a/database/cockroachdb/TUTORIAL.md +++ b/database/cockroachdb/TUTORIAL.md @@ -15,7 +15,7 @@ CREATE USER IF NOT EXISTS cockroach; GRANT ALL ON DATABASE example TO cockroach; ``` -When using Migrate CLI we need to pass to database URL. Let's export it to a variable for convienience: +When using Migrate CLI we need to pass to database URL. Let's export it to a variable for convenience: ``` export COCKROACHDB_URL='cockroachdb://cockroach:@localhost:26257/example?sslmode=disable' ``` diff --git a/database/mysql/README.md b/database/mysql/README.md index 00aca683d..a687b1dd0 100644 --- a/database/mysql/README.md +++ b/database/mysql/README.md @@ -14,7 +14,7 @@ | `port` | | The port to bind to. | | `tls` | | TLS / SSL encrypted connection parameter; see [go-sql-driver](https://github.com/go-sql-driver/mysql#tls). Use any name (e.g. `migrate`) if you want to use a custom TLS config (`x-tls-` queries). | | `x-tls-ca` | | The location of the CA (certificate authority) file. | -| `x-tls-cert` | | The location of the client certicicate file. Must be used with `x-tls-key`. | +| `x-tls-cert` | | The location of the client certificate file. Must be used with `x-tls-key`. | | `x-tls-key` | | The location of the private key file. Must be used with `x-tls-cert`. | | `x-tls-insecure-skip-verify` | | Whether or not to use SSL (true\|false) | diff --git a/database/mysql/mysql_test.go b/database/mysql/mysql_test.go index 09d95fc9a..0f675d438 100644 --- a/database/mysql/mysql_test.go +++ b/database/mysql/mysql_test.go @@ -391,7 +391,7 @@ func TestURLToMySQLConfig(t *testing.T) { // Not supported yet: https://github.com/go-sql-driver/mysql/issues/591 // {name: "user/password - user with encoded :", // urlStr: "mysql://username%3A:password@tcp(127.0.0.1:3306)/myDB?multiStatements=true", - // expectedDSN: "username::pasword@tcp(127.0.0.1:3306)/myDB?multiStatements=true"}, + // expectedDSN: "username::password@tcp(127.0.0.1:3306)/myDB?multiStatements=true"}, {name: "user/password - user with encoded @", urlStr: "mysql://username%40:password@tcp(127.0.0.1:3306)/myDB?multiStatements=true", expectedDSN: "username@:password@tcp(127.0.0.1:3306)/myDB?multiStatements=true"},