If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Cannot find file or directory?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-04, 05:48
spooner spooner is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
Smile Cannot find file or directory?

Hello. I'm a newbie and stuck.

****
You will need to upload your database file to your web space.
You can use SSH to telnet into the account and use the following command:

mysql -u database_username -p database_name < filename

For example, if your database username is foo and your database file foo.sql, you would use: mysql -u foo -p foodb < foo.sql
*****

When I enter, using Putty, I keep getting the message "can't find file or director" Now from what I gather, I need to be in the same directory as the .sql file. I have tried uploading the .sql dat file straight onto the the public_html on the server, and run the Putty.exe programme from there, also put the Putty.exe programe inside the folder alongside the .sql folder on my hard drive, but still no luck. I've been at this foor days, and read countless threads on it. Can someone please help me understand where I'm going wrong. Thank you.
Reply With Quote
  #2 (permalink)  
Old 03-01-04, 06:17
praveenpr praveenpr is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 89
Re: Cannot find file or directory?

Hi,

Case 1: you OS is Windows
---------------------------------

By default the file will be picked from the bin folder. So your foo.sql should be there in bin folder. Or else if you want to keep your file in c:\sql folder then give the full path.

Case 2: Unix OS
-------------------

Most of the cases you cannot keep your file in bin fodler because of lack of permission. Place your file in ur home directory and give the full path name.
__________________
Thanks and Regards,

Praveen Pulikunnu
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On