• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

command not found error

 
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.
 
Sheriff
Posts: 24632
56
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
Posts: 24632
56
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's try the Mac forum then...
 
Sheriff
Posts: 3034
12
Mac IntelliJ IDE Python VI Editor Java
  • 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!
 
Rancher
Posts: 4686
7
Mac OS X VI Editor Linux
  • 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.
 
Acetylsalicylic acid is aspirin. This could be handy too:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!