title: mysql server 5.0 command line client failed to open file .sql
body: <p>I am trying to use mysql command line client to execute a procedure. The procedure <code>helloworld()</code> is executing fine in mysql query browser.</p>
  
  <p>db scheme selected in query browser</p>
  
  <pre><code>DELIMITER $$
  DROP PROCEDURE IF EXISTS helloworld$$
  CREATE PROCEDURE helloworld()
  BEGIN
  SELECT 'helloworld';
  END$$
  </code></pre>
  
  <p>When I <code>call helloworld()</code> it returns helloworld. I am saving the procedure as <code>helloworld.sql</code> saved in SQL SCRIPT FILE ANSI .sql in desktop</p>
  
  <p>Now I am trying to access the .sql file  saved in desktop from cmd client giving the password that connects successfully</p>
  
  <p>Now when I type</p>
  
  <pre><code>ENTER PASSWORD:******
  Your Mysql connection id is 43
  Server Vesion 5.5.24
  
  mysql&gt; SOURCE helloworld.sql
  ERROR failed to open file helloworld.sql Error 2
  </code></pre>
  
  <p>Should I give the path of the file?</p>