mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-08 14:21:05 +00:00
chore: fix pre-commit lint for md file (#1503)
This commit is contained in:
parent
5d0d14dde8
commit
b24a4109c8
@ -7,13 +7,15 @@
|
|||||||
For any reason after rebuilding the container if you are not be able to access MariaDB correctly (i.e. `Access denied for user [...]`) with the previous configuration. Follow these instructions.
|
For any reason after rebuilding the container if you are not be able to access MariaDB correctly (i.e. `Access denied for user [...]`) with the previous configuration. Follow these instructions.
|
||||||
|
|
||||||
First test for network issues. Manually connect to the database through the `backend` container:
|
First test for network issues. Manually connect to the database through the `backend` container:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker exec -it frappe_docker-backend-1 bash
|
docker exec -it frappe_docker-backend-1 bash
|
||||||
mysql -uroot -padmin -hdb
|
mysql -uroot -padmin -hdb
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace `root` with the database root user name, `admin` with the root password, and `db` with the service name specified in the docker-compose `.yml` configuration file. If the connection to the database is successful, then the network configuration is correct and you can proceed to the next step. Otherwise, modify the docker-compose `.yml` configuration file, in the `configurator` service's `environment` section, to use the container names (`frappe_docker-db-1`, `frappe_docker-redis-cache-1`, `frappe_docker-redis-queue-1` or as otherwise shown with `docker ps`) instead of the service names and rebuild the containers.
|
Replace `root` with the database root user name, `admin` with the root password, and `db` with the service name specified in the docker-compose `.yml` configuration file. If the connection to the database is successful, then the network configuration is correct and you can proceed to the next step. Otherwise, modify the docker-compose `.yml` configuration file, in the `configurator` service's `environment` section, to use the container names (`frappe_docker-db-1`, `frappe_docker-redis-cache-1`, `frappe_docker-redis-queue-1` or as otherwise shown with `docker ps`) instead of the service names and rebuild the containers.
|
||||||
|
|
||||||
Then, the parameter `'db_name'@'%'` needs to be set in MariaDB and permission to the site database suitably assigned to the user.
|
Then, the parameter `'db_name'@'%'` needs to be set in MariaDB and permission to the site database suitably assigned to the user.
|
||||||
|
|
||||||
This step has to be repeated for all sites available under the current bench.
|
This step has to be repeated for all sites available under the current bench.
|
||||||
Example shows the queries to be executed for site `localhost`
|
Example shows the queries to be executed for site `localhost`
|
||||||
@ -33,11 +35,13 @@ mysql -uroot -padmin -hdb
|
|||||||
```
|
```
|
||||||
|
|
||||||
The parameter `'db_name'@'%'` must not be duplicated. Verify that it is unique with the command:
|
The parameter `'db_name'@'%'` must not be duplicated. Verify that it is unique with the command:
|
||||||
|
|
||||||
```
|
```
|
||||||
SELECT User, Host FROM mysql.user;
|
SELECT User, Host FROM mysql.user;
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete duplicated entries, if found, with the following:
|
Delete duplicated entries, if found, with the following:
|
||||||
|
|
||||||
```
|
```
|
||||||
DROP USER 'db_name'@'host';
|
DROP USER 'db_name'@'host';
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user