From dfcbe3fc22edf83629b0afa99d017bdf79dac3a8 Mon Sep 17 00:00:00 2001 From: Roberto Alonso De la Garza Mendoza Date: Tue, 7 Jan 2025 12:34:55 -0600 Subject: [PATCH] Update troubleshoot.md for edge cases Add create command template on troubleshoot.md --- docs/troubleshoot.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/troubleshoot.md b/docs/troubleshoot.md index 7ddbe657..09d7f8b6 100644 --- a/docs/troubleshoot.md +++ b/docs/troubleshoot.md @@ -49,6 +49,9 @@ DROP USER 'db_name'@'host'; Modify permissions by executing following queries replacing `db_name` and `db_password` with the values found in site_config.json. ```sql +-- if there is no user created already first try to created it using the next command +-- CREATE USER 'db_name'@'%' IDENTIFIED BY 'your_password'; +-- skip the upgrade command below if you use the create command above 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'@'%' IDENTIFIED BY 'db_password' WITH GRANT OPTION; FLUSH PRIVILEGES;