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 > Database Server Software > MySQL > command line batch script(win2000) causing login problems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-04, 23:10
jam8b jam8b is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
command line batch script(win2000) causing login problems

I have been running batch scripts from the command line (windows 2000) for several weeks with no problems. However recently I ran the script (I slightly modify it each time) and it just kept showing the command line over and over until I closed the window:

M:\mysql -u root -p 0<MyScript.sql

I'm not sure how the 0 got there, but anyways now when I try to login to mysql, I get the same problem even though I am not trying to run the script. If I remove the file and try to login it says it can't find the file but still won't let me in to the mysql shell.

I've only made small changes to the script and I don't think there are errors in it. I've tried resetting my computer and the mysql server but they don't seem to help.
Reply With Quote
  #2 (permalink)  
Old 03-04-04, 22:42
jam8b jam8b is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Never mind I forgot I created a bat file in the root directory and stupidly named it mysql so it was calling the bat file rather than the shell when I typed mysql from the command line.
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