Posts: 253
Threads: 65
Joined: Feb 2013
Reputation:
0
i am using table import in mysql workbench since i hate command line, when i click the table import wizard, the files .csv or .json only is asked but how can i upload a .sql file(the first one we've prepared) into the ipv4 table ??
Posts: 253
Threads: 65
Joined: Feb 2013
Reputation:
0
i cant query the complete file into the database, actually i am able to upload file sizes high as 200mb and the one we prepared is around ~4.5mb so upload is not an issue for me in pma, but after sometime mysql says query executed .......(but not complete) once again i see the ipv4 table... it is empty with no data in it..
Posts: 253
Threads: 65
Joined: Feb 2013
Reputation:
0
MySQL said: Documentation
#1148 - The used command is not allowed with this MySQL version
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
I had already added the EH code to the Pastebin file a few weeks ago but as of yet there don't seem to be any IP blocks associated with the HM code (at least not two weeks ago when I re-imported the IP data). Thanks for the heads up, though!
Posts: 34
Threads: 5
Joined: Jul 2017
Reputation:
0
Every single step worked like a charm, except the importing..
When I import a few lines (as a test) with the sql console, then it works fine..but i can not do that with 168k lines..So i had to take MySQL Workbench (connected to my Host who has Linux) and i am getting this error, when I try to import:
ERROR 1452 (23000) at line 1: Cannot add or update a child row: a foreign key constraint fails (samp.list_ipv4, CONSTRAINT fk_ipv4_countrycode FOREIGN KEY (country_code) REFERENCES list_countries (country_code))
Operation failed with exitcode 1