From 9d4fa5258ecbd8da262246971f5d370e4310c633 Mon Sep 17 00:00:00 2001 From: Camille vrignaud Date: Fri, 23 Sep 2022 17:14:24 +0200 Subject: [PATCH] :memo: Change chmod to chown and add create user for mysql 8.0 --- src/installation-guide/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/installation-guide/README.md b/src/installation-guide/README.md index 1458a56..d982436 100755 --- a/src/installation-guide/README.md +++ b/src/installation-guide/README.md @@ -101,7 +101,7 @@ $ chmod -R 755 datafiles files logs Make sure you set the web server user account to be owner of the files and folders. For example, if you are running Apache with the user account `www-data`, run this command to change the ownership: ```bash -$ chmod www-data:www-data -R +$ chown www-data:www-data -R ``` @@ -174,7 +174,9 @@ mysql> CREATE DATABASE nada; Now create a user who can access the new nada database and give the user only the rights necessary to run the NADA. ``` -mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES,LOCK TABLES ON nada.* TO 'nada'@'localhost' IDENTIFIED BY 'yourpassword'; +mysql> CREATE USER 'nada'@'localhost' IDENTIFIED BY 'yourpassword'; +mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES,LOCK TABLES ON nada.* TO 'nada'@'localhost'; +mysql> FLUSH PRIVILEGES;; ``` **`yourpassword`** - can be anything you choose. It is a good practice to use a password that contains text, numbers and special characters. @@ -202,4 +204,4 @@ Click on the Install Database button and complete the form to create an initial :::tip Complex Password Create a complex password at least 12 characters long with some uppercase, punctuation and numbers to aid security of your site. Do not forget this username and password! -::: \ No newline at end of file +:::