View Single Post
  #1 (permalink)  
Old 09-06-06, 04:47 PM
Clark_Kent's Avatar
Clark_Kent Clark_Kent is offline
Newbie Coder
 
Join Date: Mar 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Question MySQL failed to open file error....

Hi Everyone,

I'm having trouble trying to execute an sql script from the MySQL console. Let's say i have the test.sql script in the following location "C:\scripts\"

So in order to execute the test.sql script in that folder i would type...

Code:
mysql> source C:\scripts\test.sql;

or

mysql> \. C:\scripts\test.sql;
Both should do the same thing. I keep getting an error that states: "Failed to open file 'C:\scripts\test.sql;', error: 2"

The sql in the file is correct, i executed the script manually by typing out the sql into the console and it executes successfully, but when i try executing it via a .sql script i get that error.

Any idea what's wrong?

Thanks for your time,

- CK
Reply With Quote