tools/api_load.php consist hardcoded IP

Issue #320 resolved
Former user created an issue

Is uppose here should be localhost?

    // Insert data
    $query = "LOAD DATA INFILE 'http://10.132.120.172/activity.csv' INTO TABLE eve_api.systemActivity FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n'";
    $stmt = $mysql->prepare($query);
    $stmt->execute();

Comments (2)

  1. Josh Glassmaker repo owner

    Yes, localhost would more than likely be the correct address. I have another server doing my XML API call to offload from the MySQL server.

    Thanks - I will get this changed with the Tripwire rewrite I am working on now.

  2. Log in to comment