| Author |
command not found error
|
Dustin Schreader
Ranch Hand
Joined: May 25, 2009
Posts: 101
|
|
|
Hello, I'm new to mysql but I use flamerobin. I have followed the directions and setup mysql with passwords to the root accounts so far. I exited out of my sql and now when I try to use the mysql -u root -p function it says command not found. Any ideas what I'm doing wrong? Thanks.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 13842
|
|
|
That's what it says when you type that string on the Windows command line? Then it means the "mysql" command (i.e. executable) isn't in your Windows path. (Which is nothing to do with JDBC.) The easiest way to fix that is to change your current working directory to the folder which contains mysql.exe before executing that command.
|
 |
Dustin Schreader
Ranch Hand
Joined: May 25, 2009
Posts: 101
|
|
|
Sorry I just saw Sql so I figured I could post here. I'm using mac and I have mysql in the path.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 13842
|
|
|
Let's try the Mac forum then...
|
 |
Greg Charles
Bartender
Joined: Oct 01, 2001
Posts: 1855
|
|
|
Macs use paths too. If you type "which mysql" at a terminal command prompt, it should tell you where mysql is located. If it says it can't find one, then your path could be wrong. You will either need to type the full path to the mysql command, or alter your path environment variable. There's also a chance that mysql has been marked as not executable by whatever user you're logged in as. In that case, a chmod command would be needed. Let us know what you find out and we can give more targeted advice!
|
 |
Pat Farrell
Rancher
Joined: Aug 11, 2007
Posts: 3688
|
|
There are a bunch of strange setup issues with using a LAMP stack on OS-X. There is a trivial solution, use a MAMP stack, which is design for Macs. Hence the first name.
|
 |
 |
|
|
subject: command not found error
|
|
|