• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

command not found error

 
Dustin Schreader
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20725
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20725
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's try the Mac forum then...
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic