0

I' experiencing problems while trying to run a batch file within Mysql shell.

I wrote a stored procedure :

DELIMITER $$

DROP PROCEDURE IF EXISTS creaFornitori_prova$$
CREATE PROCEDURE creaFornitori_prova ()
BEGIN
create table Fornitori_prova (id_For mediumint(5) NOT NULL auto_increment,
nome_For varchar(50) NOT NULL,
ind_For varchar(50) NOT NULL,
PRIMARY KEY  (id_For)
) ENGINE=InnoDB;
END$$

DELIMITER ;

I called the file : st_F.sql

Whenever I try to execute the file through the command : source st_F.sql;

I get this error:

ERROR: Failed to open file 'st_F.sql', error: 2

I get the same error when I use \. st_Fornitori.sql;

Thanks Mauro

1 Answer 1

1
source DRIVE:ABSOLUTE_PATH_TO/st_F.sql;
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks I moved to where st_F.sql is located and run the command above and everything is ok...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.