2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-08 14:21:05 +00:00

Change mysql.user to mysql.global_priv -> for MariaDB 10.4+ (#650)

Co-authored-by: meradoch <meradoch@notdeadeyes.notdeadeyes>
This commit is contained in:
Babuuu 2022-02-12 15:09:15 +03:00 committed by GitHub
parent 8e34d092f8
commit 3ba01027de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,7 @@ mysql -uroot -p123 -hmariadb
Execute following queries replacing `db_name` and `db_password` with the values found in site_config.json.
```sql
UPDATE mysql.user SET Host = '%' where User = 'db_name'; FLUSH PRIVILEGES;
UPDATE mysql.global_priv SET Host = '%' where User = 'db_name'; FLUSH PRIVILEGES;
SET PASSWORD FOR 'db_name'@'%' = PASSWORD('db_password'); FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON `db_name`.* TO 'db_name'@'%'; FLUSH PRIVILEGES;
EXIT;