You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/mysql/flexible-server/connect-nodejs.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,15 +107,15 @@ Get the connection information needed to connect to the Azure Database for MySQL
107
107
108
108
1. Paste the JavaScript code into new text files, and then save it into a project folder with file extension .js (such as C:\nodejsmysql\createtable.js or /home/username/nodejsmysql/createtable.js).
109
109
1. Replace `host`, `user`, `password` and `database` config options in the code with the values that you specified when you created the MySQL flexible server and database.
110
-
1.**Obtain SSL certificate**: To use encrypted connections with your client applications,you will need to download the [public SSL certificate](https://dl.cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem) which is also available in Azure portal Networking blade as shown in the screenshot below.
110
+
1.**Obtain SSL certificate**: To use encrypted connections with your client applications,you'll need to download the [public SSL certificate](https://dl.cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem) which is also available in Azure portal Networking blade as shown in the screenshot below.
111
111
:::image type="content" source="./media/how-to-connect-tls-ssl/download-ssl.png" alt-text="Screenshot showing how to download public SSL certificate from Azure portal." lightbox="./media/how-to-connect-tls-ssl/download-ssl.png":::
112
112
113
113
Save the certificate file to your preferred location.
114
114
115
115
1. In the `ssl` config option, replace the `ca-cert` filename with the path to this local file. This will allow the application to connect securely to the database over SSL.
116
116
1. Open the command prompt or bash shell, and then change directory into your project folder `cd nodejsmysql`.
117
117
1. To run the application, enter the node command followed by the file name, such as `node createtable.js`.
118
-
1. On Windows, if the node application is not in your environment variable path, you may need to use the full path to launch the node application, such as `"C:\Program Files\nodejs\node.exe" createtable.js`
118
+
1. On Windows, if the node application isn't in your environment variable path, you may need to use the full path to launch the node application, such as `"C:\Program Files\nodejs\node.exe" createtable.js`
Copy file name to clipboardExpand all lines: articles/mysql/single-server/concepts-migrate-dump-restore.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This article explains two common ways to back up and restore databases in your A
19
19
- Dump and restore from the command-line (using mysqldump)
20
20
- Dump and restore using PHPMyAdmin
21
21
22
-
You can also refer to [Database Migration Guide](https://github.com/Azure/azure-mysql/tree/master/MigrationGuide) for detailed information and use cases about migrating databases to Azure Database for MySQL. This guide provides guidance that will lead the successful planning and execution of a MySQL migration to Azure.
22
+
You can also refer to [Database Migration Guide](https://github.com/Azure/azure-mysql/tree/master/MigrationGuide) for detailed information and use cases about migrating databases to Azure Database for MySQL. This guide provides guidance that leads the successful planning and execution of a MySQL migration to Azure.
23
23
24
24
## Before you begin
25
25
To step through this how-to guide, you need to have:
@@ -75,8 +75,8 @@ Add the connection information into your MySQL Workbench.
75
75
## Preparing the target Azure Database for MySQL server for fast data loads
76
76
To prepare the target Azure Database for MySQL server for faster data loads, the following server parameters and configuration needs to be changed.
77
77
- max_allowed_packet – set to 1073741824 (that is, 1 GB) to prevent any overflow issue due to long rows.
78
-
- slow_query_log – set to OFF to turn off the slow query log. This will eliminate the overhead caused by slow query logging during data loads.
79
-
- query_store_capture_mode – set to NONE to turn off the Query Store. This will eliminate the overhead caused by sampling activities by Query Store.
78
+
- slow_query_log – set to OFF to turn off the slow query log. This eliminates the overhead caused by slow query logging during data loads.
79
+
- query_store_capture_mode – set to NONE to turn off the Query Store. This eliminates the overhead caused by sampling activities by Query Store.
80
80
- innodb_buffer_pool_size – Scale up the server to 32 vCore Memory Optimized SKU from the Pricing tier of the portal during migration to increase the innodb_buffer_pool_size. Innodb_buffer_pool_size can only be increased by scaling up compute for Azure Database for MySQL server.
81
81
- innodb_io_capacity & innodb_io_capacity_max - Change to 9000 from the Server parameters in Azure portal to improve the IO utilization to optimize for migration speed.
82
82
- innodb_write_io_threads & innodb_write_io_threads - Change to 4 from the Server parameters in Azure portal to improve the speed of migration.
@@ -170,4 +170,4 @@ For known issues, tips and tricks, we recommend you to look at our [techcommunit
170
170
## Next steps
171
171
-[Connect applications to Azure Database for MySQL](./how-to-connection-string.md).
172
172
- For more information about migrating databases to Azure Database for MySQL, see the [Database Migration Guide](https://github.com/Azure/azure-mysql/tree/master/MigrationGuide).
173
-
- If you're looking to migrate large databases with database sizes more than 1 TBs, you may want to consider using community tools like **mydumper/myloader** which supports parallel export and import. Learn [how to migrate large MySQL databases](https://techcommunity.microsoft.com/t5/azure-database-for-mysql/best-practices-for-migrating-large-databases-to-azure-database/ba-p/1362699).
173
+
- If you're looking to migrate large databases with database sizes more than 1 TB, you may want to consider using community tools like **mydumper/myloader** which supports parallel export and import. Learn [how to migrate large MySQL databases](https://techcommunity.microsoft.com/t5/azure-database-for-mysql/best-practices-for-migrating-large-databases-to-azure-database/ba-p/1362699).
Copy file name to clipboardExpand all lines: articles/mysql/single-server/concepts-ssl-connection-security.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ When provisioning a new Azure Database for MySQL server through the Azure portal
34
34
35
35
Connection strings for various programming languages are shown in the Azure portal. Those connection strings include the required SSL parameters to connect to your database. In the Azure portal, select your server. Under the **Settings** heading, select the **Connection strings**. The SSL parameter varies based on the connector, for example "ssl=true" or "sslmode=require" or "sslmode=required" and other variations.
36
36
37
-
In some cases, applications require a local certificate file generated from a trusted Certificate Authority (CA) certificate file to connect securely. Currently customers can **only use** the predefined certificate to connect to an Azure Database for MySQL server which is located at https://www.digicert.com/CACerts/BaltimoreCyberTrustRoot.crt.pem.
37
+
In some cases, applications require a local certificate file generated from a trusted Certificate Authority (CA) certificate file to connect securely. Currently customers can **only use** the predefined certificate to connect to an Azure Database for MySQL server, which is located at https://www.digicert.com/CACerts/BaltimoreCyberTrustRoot.crt.pem.
38
38
39
39
Similarly, the following links point to the certificates for servers in sovereign clouds: [Azure Government](https://www.digicert.com/CACerts/BaltimoreCyberTrustRoot.crt.pem), [Azure China](https://dl.cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem), and [Azure Germany](https://www.d-trust.net/cgi-bin/D-TRUST_Root_Class_3_CA_2_2009.crt).
40
40
@@ -56,18 +56,18 @@ Azure Database for MySQL provides the ability to enforce the TLS version for the
56
56
| TLS1_2 | TLS version 1.2 and higher |
57
57
58
58
59
-
For example, setting the value of minimum TLS setting version to TLS 1.0 means your server will allow connections from clients using TLS 1.0, 1.1, and 1.2+. Alternatively, setting this to 1.2 means that you only allow connections from clients using TLS 1.2+ and all connections with TLS 1.0 and TLS 1.1 will be rejected.
59
+
For example, setting the value of minimum TLS setting version to TLS 1.0 means your server allows connections from clients using TLS 1.0, 1.1, and 1.2+. Alternatively, setting this to 1.2 means that you only allow connections from clients using TLS 1.2+ and all connections with TLS 1.0 and TLS 1.1 will be rejected.
60
60
61
61
> [!NOTE]
62
62
> By default, Azure Database for MySQL does not enforce a minimum TLS version (the setting `TLSEnforcementDisabled`).
63
63
>
64
64
> Once you enforce a minimum TLS version, you cannot later disable minimum version enforcement.
65
65
66
-
The minimum TLS version setting doesnt require any restart of the server can be set while the server is online. To learn how to set the TLS setting for your Azure Database for MySQL, refer to [How to configure TLS setting](how-to-tls-configurations.md).
66
+
The minimum TLS version setting doesn't require any restart of the server can be set while the server is online. To learn how to set the TLS setting for your Azure Database for MySQL, refer to [How to configure TLS setting](how-to-tls-configurations.md).
67
67
68
68
## Cipher support by Azure Database for MySQL single server
69
69
70
-
As part of the SSL/TLS communication, the cipher suites are validated and only support cipher suits are allowed to communicate to the database serer. The cipher suite validation is controlled in the [gateway layer](concepts-connectivity-architecture.md#connectivity-architecture) and not explicitly on the node itself. If the cipher suites doesn't match one of suites listed below, incoming client connections will be rejected.
70
+
As part of the SSL/TLS communication, the cipher suites are validated and only support cipher suits are allowed to communicate to the database server. The cipher suite validation is controlled in the [gateway layer](concepts-connectivity-architecture.md#connectivity-architecture) and not explicitly on the node itself. If the cipher suites don't match one of suites listed below, incoming client connections will be rejected.
Copy file name to clipboardExpand all lines: articles/mysql/single-server/connect-nodejs.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ ms.date: 06/20/2022
19
19
20
20
In this quickstart, you connect to an Azure Database for MySQL by using Node.js. You then use SQL statements to query, insert, update, and delete data in the database from Mac, Ubuntu Linux, and Windows platforms.
21
21
22
-
This topic assumes that you're familiar with developing using Node.js, but you're new to working with Azure Database for MySQL.
22
+
This article assumes that you're familiar with developing using Node.js, but you're new to working with Azure Database for MySQL.
23
23
24
24
## Prerequisites
25
25
@@ -109,7 +109,7 @@ Get the connection information needed to connect to the Azure Database for MySQL
109
109
1. In the `ssl` config option, replace the `ca-cert` filename with the path to this local file.
110
110
1. Open the command prompt or bash shell, and then change directory into your project folder `cd nodejsmysql`.
111
111
1. To run the application, enter the node command followed by the file name, such as `node createtable.js`.
112
-
1. On Windows, if the node application is not in your environment variable path, you may need to use the full path to launch the node application, such as `"C:\Program Files\nodejs\node.exe" createtable.js`
112
+
1. On Windows, if the node application isn't in your environment variable path, you may need to use the full path to launch the node application, such as `"C:\Program Files\nodejs\node.exe" createtable.js`
| Connection Name | Demo Connection | Specify a label for this connection. |
62
-
| Connection Method | Standard (TCP/IP) | Standard (TCP/IP) is sufficient. |
63
-
| Hostname |*server name*| Specify the server name value that was used when you created the Azure Database for MySQL earlier. Our example server shown is mydemoserver.mysql.database.azure.com. Use the fully qualified domain name (\*.mysql.database.azure.com) as shown in the example. Follow the steps in the previous section to get the connection information if you do not remember your server name. |
64
-
| Port | 3306 | Always use port 3306 when connecting to Azure Database for MySQL. |
65
-
| Username | *server admin login name* | Type in the server admin login username supplied when you created the Azure Database for MySQL earlier. Our example username is myadmin@mydemoserver. Follow the steps in the previous section to get the connection information if you do not remember the username. The format is *username\@servername*.
66
-
| Password | your password | Select **Store in Vault...** button to save the password. |
59
+
:::image type="content" source="./media/connect-workbench/2-setup-new-connection.png" alt-text="setup new connection" lightbox="./media/connect-workbench/2-setup-new-connection.png":::
| Connection Name | Demo Connection | Specify a label for this connection. |
64
+
| Connection Method | Standard (TCP/IP) | Standard (TCP/IP) is sufficient. |
65
+
| Hostname |*server name*| Specify the server name value that was used when you created the Azure Database for MySQL earlier. Our example server shown is mydemoserver.mysql.database.azure.com. Use the fully qualified domain name (\*.mysql.database.azure.com) as shown in the example. Follow the steps in the previous section to get the connection information if you don't remember your server name. |
66
+
| Port | 3306 | Always use port 3306 when connecting to Azure Database for MySQL. |
67
+
| Username | *server admin login name* | Type in the server admin login username supplied when you created the Azure Database for MySQL earlier. Our example username is myadmin@mydemoserver. Follow the steps in the previous section to get the connection information if you don't remember the username. The format is *username\@servername*.
68
+
| Password | your password | Select **Store in Vault...** button to save the password. |
69
+
68
70
1. Select **Test Connection** to test if all parameters are correctly configured.
69
71
70
72
1. Select **OK** to save the connection.
@@ -112,7 +114,9 @@ To connect to Azure MySQL Server by using the GUI tool MySQL Workbench:
112
114
:::image type="content" source="media/connect-workbench/3-workbench-sql-tab.png" alt-text="MySQL Workbench SQL Tab to run sample SQL code" lightbox="media/connect-workbench/3-workbench-sql-tab.png":::
113
115
114
116
1. To run the sample SQL Code, select the lightening bolt icon in the toolbar of the **SQL File** tab.
117
+
115
118
1. Notice the three tabbed results in the **Result Grid** section in the middle of the page.
119
+
116
120
1. Notice the **Output** list at the bottom of the page. The status of each command is shown.
117
121
118
122
Now, you have connected to Azure Database for MySQL by using MySQL Workbench, and you have queried data using the SQL language.
0 commit comments