MySQL Forums
Forum List  »  Install & Repo

Execution of script file from MySQL command line
Posted by: David Brown
Date: December 27, 2011 12:07AM

Server is MySQL 5.5, operating system is Windows XP. Using Notepad I created a script file SQL_script.txt with a single instruction, "USE MENAGERIE;" where the argument is a valid test database name. I located this file right in the root directory:
c:/SQL_script.txt
From the MySQL command line I executed command
\. c:/SQL_script.txt;
with result
ERROR: Failed to open file 'c:/SQL_script.txt;'. error: 2

Why did the open fail? Where can I find an error message table with numeric error codes? (I have the MySQL 5.5 Ref Manual downloaded.)

Options: ReplyQuote


Subject
Written By
Posted
Execution of script file from MySQL command line
December 27, 2011 12:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.