Update README.md

This commit is contained in:
Zepher Ashe 2022-05-25 20:51:57 +01:00 committed by GitHub
parent 8a75f1fc1d
commit a4433bee21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,13 +59,13 @@ Once logged into the database via PHPMyAdmin under the **PHPMyAdmin > SQL** tab,
Amend the password _PASSWORD_HERE_ using a strong [random password](https://passwordsgenerator.net/). Amend the password _PASSWORD_HERE_ using a strong [random password](https://passwordsgenerator.net/).
mysql> CREATE USER IF NOT EXISTS 'doogle'@'127.0.0.1' IDENTIFIED BY 'PASSWORD_HERE'; mysql> CREATE USER IF NOT EXISTS 'doogle'@'localhost' IDENTIFIED BY 'PASSWORD_HERE';
### SQL User Permissions ### SQL User Permissions
The SQL user 'doogle' must have SELECT, INSERT and UPDATE privileges: The SQL user 'doogle' must have SELECT, INSERT and UPDATE privileges:
mysql> GRANT SELECT, INSERT, UPDATE ON `doogle`.* TO 'doogle'@'127.0.0.1'; mysql> GRANT SELECT, INSERT, UPDATE ON `doogle`.* TO 'doogle'@'localhost';
- INSERT is used for crawling - INSERT is used for crawling
- SELECT is required for the search engine to return queries - SELECT is required for the search engine to return queries
@ -76,7 +76,7 @@ The SQL user 'doogle' must have SELECT, INSERT and UPDATE privileges:
In the file config.php the following must be entered correctly for your database configuration: In the file config.php the following must be entered correctly for your database configuration:
$dbname = "doogle"; $dbname = "doogle";
$dbhost = "127.0.0.1"; $dbhost = "localhost";
$dbuser = "doogle"; $dbuser = "doogle";
$dbpass = ""; $dbpass = "";
@ -86,7 +86,7 @@ In the file 'doogle-tables-no-data.sql' the database will be created as 'doogle'
### Form-based crawl ### Form-based crawl
In your browser go to where the file is hosted http://127.0.0.1/crawl-formSubmit.php In your browser go to where the file is hosted http://localhost/crawl-formSubmit.php
Paste the URL into the input field and press the Crawl button. Paste the URL into the input field and press the Crawl button.
@ -96,7 +96,7 @@ At the bottom of crawl-manual.php the variable $startUrl is where to paste the U
$startUrl = "https://thehackernews.com/"; $startUrl = "https://thehackernews.com/";
Then in your browser go to where the file is hosted http://127.0.0.1/crawl-manual.php Then in your browser go to where the file is hosted http://localhost/crawl-manual.php
### Explanation ### Explanation