...
1 - Log into MySQL console
You have to use mysql command with --local-info=1 to login, e.g.
| Code Block |
|---|
mysql --local-infile=1 -uroot -p dualshield |
2 - Change to "DualShield" database:
| Code Block | ||
|---|---|---|
| ||
use DualShield; |
Enable
| Code Block | ||
|---|---|---|
| ||
set global local_infile=true; |
4 - Execute the script below to import the database
...
* replace "FILE-PATH-TO" with the actual file path where the downloaded file is saved, e.g. "c:\downloadstemp"
* Please note that it can take hours to import the data depending on the performance of the machine, as there are nearly 5 millions of records to be imported.
You can monitor the progress by checking MySQL's CPU usage in the Task Manager
5 - After the ip2location data has been imported successfully, execute the script below to process the data
| Code Block | ||
|---|---|---|
| ||
Update ip2location_ipv6 set ip_from = LPAD(ip_from, 39,'0'),ip_to = LPAD(ip_to, 39,'0'); |
Again, this process will take some time depending on the machine power.
Note:
* For dualshield version < 8.0, the name of the table in the database is called "ip2location_db3_ipv6"
...













