Update README.MD
This commit is contained in:
		
							
								
								
									
										25
									
								
								README.MD
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								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
 | 
			
		||||
### 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
 | 
			
		||||
```````
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user