google / vulncode-db

Vulncode-DB project
https://www.vulncode-db.com
Apache License 2.0
575 stars 71 forks source link

Error when using cwe_data function of docker-admin.sh #103

Open jsanket9578 opened 3 years ago

jsanket9578 commented 3 years ago

Describe the bug I get the following error message when using cwe_data function of docker-admin.sh: cwe_data: ERROR 3948 (42000) at line 1: Loading local data is disabled; this must be enabled on both the client and server sides

To Reproduce

  1. Navigate to vulncode-db folder
  2. Execute setup.sh
  3. Write the command: ./docker/docker-admin.sh cwe_data
  4. See Error (Check screenshot)

Desktop

Additional Context The error looks to be related to MySQL but since everything is containerised, I am not sure how to debug.

image

evonide commented 3 years ago

Issue 6bea981ff87ab0fe840b57fffb764e8e85e421bf adds --local-infile=1 to the mysql client. I have to verify if this is sufficient to import data from a csv file though.