Home:ALL Converter>Failed to open file, Error 2 - MySQL Import

Failed to open file, Error 2 - MySQL Import

Ask Time:2021-11-10T13:55:34         Author:P. Paul

Json Formatter

I'm trying to import a MySQL Database via command line (Terminal). The file's path seems to be correct, but I keep getting an error message that is most likely showing that, the path of the SQL file I'm importing is not correct. Below is the sample of the command line I'm using and the error I'm getting...

NOTE: Linux Server, Centos 7 - MariaDB

source C:/Users/localcomputerUser/SQLFileFolder/SQLFile.sql

source C:/Users/localcomputerUser/SQLFileFolder/SQLFile.sql

Failed to open file 'C:/Users/localcomputerUser/SQLFileFolder/SQLFile.sql ', error: 2

Thanks for your support.

Author:P. Paul,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/69908503/failed-to-open-file-error-2-mysql-import
yy