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
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/cloud/project/services-mysql.md
+33-11Lines changed: 33 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,12 @@ The `mysql` service provides persistent data storage based on [MariaDB](https://
13
13
{% include install/maria-db.md %}
14
14
15
15
{:.bs-callout-warning}
16
-
Be careful when upgrading MariaDB from version 10.1 to 10.2.
17
-
MariaDB 10.1 is the last version that supports XtraDB as the storage engine. Version 10.2 uses InnoDB for the storage engine. Once you upgrade from 10.1 to 10.2, you cannot rollback the change. {{site.data.var.ee}} supports both storage engines; however, you must check extensions and other systems used by your project to make sure they are compatible with MariaDB 10.2. Read about this [backwards incompatible change](https://mariadb.com/kb/en/upgrading-from-mariadb-101-to-mariadb-102/#incompatible-changes-between-101-and-102).
16
+
Be careful when upgrading MariaDB from version 10.1 to 10.2. MariaDB 10.1 is the last version that supports _XtraDB_ as the storage engine. MariaDB 10.2 uses _InnoDB_ for the storage engine. After you upgrade from 10.1 to 10.2, you cannot roll back the change. {{site.data.var.ee}} supports both storage engines; however, you must check extensions and other systems used by your project to make sure they are compatible with MariaDB 10.2. See [Incompatible Changes Between 10.1 and 10.2](https://mariadb.com/kb/en/upgrading-from-mariadb-101-to-mariadb-102/#incompatible-changes-between-101-and-102).
18
17
19
18
{% include cloud/service-config-integration-starter.md %}
20
19
21
-
## Enable MySQL
20
+
{:.procedure}
21
+
To enable MySQL:
22
22
23
23
1. Add the required name, type, and disk value (in MB) to the `.magento/services.yaml` file.
24
24
@@ -41,21 +41,40 @@ MariaDB 10.1 is the last version that supports XtraDB as the storage engine. Ver
41
41
1. Add, commit, and push your code changes.
42
42
43
43
```bash
44
-
git add -A && git commit -m "Enable mysql service" && git push origin <branch-name>
44
+
git add -A && git commit -m "Enable mysql service" && git push origin <branch-name>
45
45
```
46
46
47
47
1. [Verify the service relationships]({{ site.baseurl }}/cloud/project/services.html#service-relationships).
Optionally, you can set up multiple databases and multiple users with different permissions.
53
+
You have the following options when configuring the MySQL database:
54
54
55
-
An _endpoint_ is a set of credentials (or users) with specific privileges. By default, there is one endpoint named `mysql` that has administrator access to all defined databases. To set up multiple database users, you must define multiple endpoints in the services.yaml file and declare the relationships in the `.magento.app.yaml` file. For Pro Staging and Production environments, submit a Support ticket to request the additional user.
55
+
- **`schemas`**—A schema defines a database. The default schema is the `main` database.
56
+
- **`endpoints`**—Each endpoint represents a credential with specific privileges. The default endpoint is `mysql`, which has `admin` access to the `main` database.
57
+
- **`properties`**—Properties are used to define additional database configurations.
56
58
57
-
{:.bs-callout-warning}
58
-
You cannot use multiple _databases_ with {{site.data.var.ee}}, but you **can** create multiple endpoints to restrict access to the `main` database.
59
+
The following is a basic example configuration in the `.magento/services.yaml` file:
60
+
61
+
```yaml
62
+
mysql:
63
+
type: mysql:10.4
64
+
disk: 5120
65
+
configuration:
66
+
properties:
67
+
optimizer_switch: "rowid_filter=off"
68
+
optimizer_use_condition_selectivity: 1
69
+
```
70
+
71
+
The `properties` in the above example modifies the default `optimizer` settings as [recommended in the Performance Best Practices guide]({{ site.baseurl }}{{ site.gdeurl }}/performance-best-practices/configuration.html#indexers).
72
+
73
+
### Set up multiple database users
74
+
75
+
Optionally, you can set up multiple users with different permissions for accessing the `main` database.
76
+
77
+
By default, there is one endpoint named `mysql` that has administrator access to the database. To set up multiple database users, you must define multiple endpoints in the `services.yaml` file and declare the relationships in the `.magento.app.yaml` file. For Pro Staging and Production environments, submit a Support ticket to request the additional user.
59
78
60
79
Use a nested array to define the endpoints for specific user access. Each endpoint can designate access to one or more schemas (databases) and different levels of permission on each.
61
80
@@ -65,11 +84,11 @@ The valid permission levels are:
65
84
- `rw`: SELECT queries and INSERT, UPDATE, and DELETE queries are allowed.
66
85
- `admin`: All queries are allowed, including DDL queries (CREATE TABLE, DROP TABLE, and so on).
67
86
68
-
If no endpoints are defined, a single endpoint named `mysql` has `admin` access to the `main` database. For example:
87
+
For example:
69
88
70
89
```yaml
71
90
mysql:
72
-
type: mysql:10.3
91
+
type: mysql:10.4
73
92
disk: 5120
74
93
configuration:
75
94
schemas:
@@ -85,6 +104,9 @@ mysql:
85
104
importer:
86
105
privileges:
87
106
main: rw
107
+
properties:
108
+
optimizer_switch: "rowid_filter=off"
109
+
optimizer_use_condition_selectivity: 1
88
110
```
89
111
90
112
In the preceding example, the `admin` endpoint provides admin-level access to the `main` database, the `reporter` endpoint provides read-only access, and the `importer` endpoint provides read-write access, which means:
Copy file name to clipboardExpand all lines: src/guides/v2.4/extension-dev-guide/searching-with-repositories.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,9 @@ $filter
41
41
42
42
This filter will find all urls with the suffix of "magento.com".
43
43
44
+
{:.bs-callout-info}
45
+
A full list of condition types can be found in the [Rest API Reference]({{ page.baseurl }}/rest/performing-searches.html).
46
+
44
47
### Filter Group
45
48
46
49
The [`FilterGroup`]({{ site.mage2bloburl }}/{{ page.guide_version }}/lib/internal/Magento/Framework/Api/Search/FilterGroup.php) class acts like a collection of Filters that apply one or more criteria to a search.
Copy file name to clipboardExpand all lines: src/guides/v2.4/install-gde/install/cli/install-cli.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,9 @@ Any options that contain spaces or special characters must be enclosed in either
90
90
91
91
The following options specify the user information and credentials for the Magento admin user.
92
92
93
-
In {{site.data.var.ee}} version 2.2.8 and later, you can create the Magento admin user during or after installation. If you create the user during installation, all admin credential variables are required. See [Sample localhost installations](#install-cli-example).
93
+
You can create the Magento admin user during or after installation. If you create the user during installation, all admin credential variables are required. See [Sample localhost installations](#install-cli-example).
94
+
95
+
The following tables provide many but not all available install parameters. For a complete list, see the [Command-line Tools Reference](https://devdocs.magento.com/guides/v2.4/reference/cli/magento.html).
0 commit comments