From 3fcdcd1342fd9d55180d482403d7e3952639fde0 Mon Sep 17 00:00:00 2001 From: Thies Mueller Date: Fri, 8 Jan 2021 17:22:22 +0100 Subject: [PATCH 1/2] Update README.MD --- README.MD | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.MD b/README.MD index b913736..e47afca 100644 --- a/README.MD +++ b/README.MD @@ -30,4 +30,27 @@ Some poc of a login / register setup with php & mysql - [ ] Reset password -### Thanks for flying penguin stack overflow stealing! <3 \ No newline at end of file +### Thanks for flying penguin stack overflow stealing! <3 + +### Database Setup: + +````` +# mysql -u root -p +``````` +in the mysql shell do the following: + +`````` +CREATE DATABASE usertable; +CREATE USER 'usertable'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; +GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON usertable.* TO 'usertable'@'localhost'; +FLUSH PRIVILEGES; +exit +`````` +Test if you were successfull with: +````` +# mysql -u usertable -p +``````` +Import the empty database like this: +````` +# mysql -u usertable --password=password < usertable.sql +``````` From 055cc5a25750364559142cd4e3e6c9e70a133036 Mon Sep 17 00:00:00 2001 From: Thies Mueller Date: Fri, 8 Jan 2021 17:23:51 +0100 Subject: [PATCH 2/2] Update README.MD --- README.MD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.MD b/README.MD index e47afca..7a54bb7 100644 --- a/README.MD +++ b/README.MD @@ -52,5 +52,5 @@ Test if you were successfull with: ``````` Import the empty database like this: ````` -# mysql -u usertable --password=password < usertable.sql +# mysql -u usertable --password=password usertable < usertable.sql ```````