This repository was archived by the owner on Sep 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,17 +9,28 @@ First create a MySQL database by running:
99CREATE DATABASE database_name_goes_here ;
1010```
1111
12- To set it up, create a MySQL table, with the fields ` name ` and ` password ` , to do so run:
12+ Then switch over to it by running:
13+
14+ ``` MySQL
15+ use database_name_goes_here;
16+ ```
17+
18+ To set the table up, create a MySQL table with the fields ` name ` and ` password ` , to do so run:
1319
1420``` MySQL
1521CREATE TABLE users (name VARCHAR (30 ) NOT NULL , password VARCHAR (256 ) NOT NULL );
1622```
17- Then put your desired username in the ` name ` field, and the password in the ` password ` field.
23+ Then put your desired username in the ` name ` field, and the password in the ` password ` field, to do so run:
24+ ``` MySQL
25+ INSERT INTO users VALUES (" user_here" ," password goes here" );
26+ ```
27+
28+ #NOTICE
1829The password must be PHP hashed, to do so, run:
1930
2031``` shell
2132php -r ' echo password_hash("password", PASSWORD_DEFAULT);' ; echo " "
2233```
23- on a LAMP install, make sure to put this password back in the MySQL table...
34+ MAKE SURE to put this password back in the MySQL table...
2435
2536Finally, change the values in the <b >user.php</b > file to match your own.
You can’t perform that action at this time.
0 commit comments