Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 3402641

Browse files
committed
Update services-mysql.md
1 parent e75d175 commit 3402641

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/cloud/project/services-mysql.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,13 @@ If you configure one MySQL user, you cannot use the [`DEFINER`](https://dev.mysq
107107

108108
## Connect to the database
109109

110-
Accessing the MariaDB database directly requires you to use a SSH to log in to the remote server, and connect to the database.
110+
Accessing the MariaDB database directly requires you to use a SSH to log in to the remote Cloud environment, and connect to the database.
111111

112-
1. Log in to the remote server using a SSH.
112+
1. Use SSH to log in to the remote environment.
113+
114+
```bash
115+
magento-cloud ssh
116+
```
113117

114118
1. Retrieve the MySQL login credentials from the `database` and `type` properties in the [$MAGENTO_CLOUD_RELATIONSHIPS]({{ site.baseurl }}/cloud/project/magento-app-properties.html#relationships) variable.
115119

@@ -147,7 +151,7 @@ Accessing the MariaDB database directly requires you to use a SSH to log in to t
147151
],
148152
```
149153

150-
1. Connect to the database:
154+
1. Connect to the database.
151155

152156
- For Starter, use the following command:
153157

@@ -161,6 +165,9 @@ Accessing the MariaDB database directly requires you to use a SSH to log in to t
161165
mysql -h <hostname> -P <number> -u <username> -p'<password>'
162166
```
163167

168+
{:.bs-callout-tip}
169+
You can use the `magento-cloud db:sql` command to connect to the remote database and run SQL commands.
170+
164171
## Connect to secondary database
165172

166173
Sometimes, you have to connect to the secondary database to improve database performance or resolve database locking issues. If this configuration is required, use `"port" : 3304` to establish the connection. See the [{{ site.data.var.ece }} database best practice](https://support.magento.com/hc/en-us/articles/360049045351) article in the _{{site.data.var.ee}} Help Center_.

0 commit comments

Comments
 (0)