Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit c90b9f9

Browse files
authored
Update README.md
Updated
1 parent 5620053 commit c90b9f9

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,28 @@ First create a MySQL database by running:
99
CREATE 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
1521
CREATE 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
1829
The password must be PHP hashed, to do so, run:
1930

2031
```shell
2132
php -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

2536
Finally, change the values in the <b>user.php</b> file to match your own.

0 commit comments

Comments
 (0)