Home > Net >  MySQL's "SOURCE" returns Error 2 despite the Path is correct
MySQL's "SOURCE" returns Error 2 despite the Path is correct

Time:11-03

I was trying to import a SQL Script into my DB but I get the Error 2.

That's the Command I tried in MySQL and the Error I get: enter image description here

Now, here's the path of the file "script.sql":

enter image description here

So I can't understand what's wrong, this should work.. Anyone can help?

CodePudding user response:

This is the path issue. so put script.sql file into another drive.

D:\\data/script.sql OR D://data/script.sql

USE database name; SOURCE D:\data/script.sql;

  • Related