• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

command not found error

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 26618
81
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 26618
81
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's try the Mac forum then...
 
Sheriff
Posts: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
A wop bop a lu bop a womp bam boom! Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic