bunner bob
Registered
I was configuring MySQL using Marc Liyanage's instructions and, though I'm on Panther and should have been in the bash shell, it turns out i was in the tcsh shell.
I was trying to set up the shortcut so I didn't have to type the whole directory path when I wanted to issue a command to mysql. I copied and pasted a line of code (viewed as source). The line was supposed to include a couple of ">>" signs, but in code they read ">>" - so here's the transcript:
[whitebox:~] bob% echo 'export PATH=/usr/local/mysql/bin:$PATH' >> ~/.bash_profile
[1] 876
[2] 877
tcsh: gt: Command not found.
tcsh: /Users/bob/.bash_profile: Command not found.
[whitebox:~] bob% export PATH=/usr/local/mysql/bin:$PATH
tcsh: gt: Command not found.
[2] + Exit 1 ( ; gt )
[1] + Done echo export PATH=/usr/local/mysql/bin:$PATH
So I hit return (hoping I hadn't done damage) and entered it in the right way (or what would have been had this been a bash shell):
[whitebox:~] bob% echo 'export PATH=/usr/local/mysql/bin:$PATH' >> ~/.bash_profile
But when I ran this:
[whitebox:~] bob% mysql test
tcsh: mysql: Command not found.
At which point I realized I'd been using the command for the wrong shell, so I entered this:
[whitebox:~] bob% echo 'setenv PATH /usr/local/mysql/bin:$PATH' >> ~/.tcshrc
Which should have been fine but this still didn't work:
[whitebox:~] bob% mysql test
tcsh: mysql: Command not found.
Though I WAS able to run the command by entering the full path name.
So what DID I do? And can I undo it? And actually get the shortcut to work?
Thanks, O Unix masters.
- Bob
I was trying to set up the shortcut so I didn't have to type the whole directory path when I wanted to issue a command to mysql. I copied and pasted a line of code (viewed as source). The line was supposed to include a couple of ">>" signs, but in code they read ">>" - so here's the transcript:
[whitebox:~] bob% echo 'export PATH=/usr/local/mysql/bin:$PATH' >> ~/.bash_profile
[1] 876
[2] 877
tcsh: gt: Command not found.
tcsh: /Users/bob/.bash_profile: Command not found.
[whitebox:~] bob% export PATH=/usr/local/mysql/bin:$PATH
tcsh: gt: Command not found.
[2] + Exit 1 ( ; gt )
[1] + Done echo export PATH=/usr/local/mysql/bin:$PATH
So I hit return (hoping I hadn't done damage) and entered it in the right way (or what would have been had this been a bash shell):
[whitebox:~] bob% echo 'export PATH=/usr/local/mysql/bin:$PATH' >> ~/.bash_profile
But when I ran this:
[whitebox:~] bob% mysql test
tcsh: mysql: Command not found.
At which point I realized I'd been using the command for the wrong shell, so I entered this:
[whitebox:~] bob% echo 'setenv PATH /usr/local/mysql/bin:$PATH' >> ~/.tcshrc
Which should have been fine but this still didn't work:
[whitebox:~] bob% mysql test
tcsh: mysql: Command not found.
Though I WAS able to run the command by entering the full path name.
So what DID I do? And can I undo it? And actually get the shortcut to work?
Thanks, O Unix masters.
- Bob