Skip to content

Commit 0b67c69

Browse files
committed
Use normalized connection string in documentation.
This uses the format that MySqlConnectionStringBuilder.ConnectionString has produced since v2.0.0.
1 parent 0b3e244 commit 0b67c69

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/content/connection-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ menu:
1212

1313
The simplest MySQL connection string for C# is:
1414

15-
`new MySqlConnection("server=YOURSERVER;user=YOURUSERID;password=YOURPASSWORD")`
15+
`new MySqlConnection("Server=YOURSERVER;User ID=YOURUSERID;Password=YOURPASSWORD")`
1616

1717
For all the other options, see the tables below. MySqlConnector supports most of Oracle’s
1818
[Connector/NET connection options](https://dev.mysql.com/doc/connector-net/en/connector-net-8-0-connection-options.html).

docs/content/overview/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ MySqlConnector uses a connection string in order to connect to your database.
1515

1616
To connect to a database on `localhost` port `3306` with a user `mysqltest`, password `Password123`, and default schema `mysqldb`, the connection string would be:
1717

18-
`host=127.0.0.1;port=3306;user id=mysqltest;password=Password123;database=mysqldb;`
18+
`Server=localhost;Port=3306;User ID=mysqltest;Password=Password123;Database=mysqldb`
1919

2020
For all connection string options, view the [Connection Options Reference](/connection-options/).

docs/content/tutorials/connect-to-mysql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Or right-click your project, choose **Manage NuGet Packages...**, in the **Searc
2929
A typical connection string for MySQL is:
3030

3131
```
32-
server=YOURSERVER;user=YOURUSERID;password=YOURPASSWORD;database=YOURDATABASE
32+
Server=YOURSERVER;User ID=YOURUSERID;Password=YOURPASSWORD;Database=YOURDATABASE
3333
```
3434

3535
Replace the values in that string with the appropriate settings for your database. For more advanced
@@ -41,7 +41,7 @@ If you are using ASP.NET Core, your connection string will usually be stored in
4141
{
4242
....
4343
"ConnectionStrings": {
44-
"Default": "server=YOURSERVER;user=YOURUSERID;password=YOURPASSWORD;database=YOURDATABASE"
44+
"Default": "Server=YOURSERVER;User ID=YOURUSERID;Password=YOURPASSWORD;Database=YOURDATABASE"
4545
}
4646
}
4747
```

docs/content/tutorials/net-core-mvc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ to verify the project builds and runs successfully.
4949
}
5050
},
5151
"ConnectionStrings": {
52-
"DefaultConnection": "server=127.0.0.1;user id=root;password=pass;port=3306;database=blog;"
52+
"DefaultConnection": "Server=127.0.0.1;User ID=root;Password=pass;Port=3306;Database=blog"
5353
}
5454
}
5555
```

0 commit comments

Comments
 (0)