mysql cli - Help

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

mysql cli - Help

Postby sinkingfish » 31. August 2009 20:52

Hi, Im new to mac and want to restore a mysql database from a dump.

I'm not able to access mysql from the commandline. In terminal i'm in /Applications/XAMPP/xamppfiles/bin. It shows in the dir there is a file mysql, but when I try mysql it just says : -bash: mysql: command not found.

What am I missing ? Thanks for the help.
sinkingfish
 
Posts: 9
Joined: 24. January 2008 11:43

Re: mysql cli - Help

Postby Wiedmann » 31. August 2009 23:26

What am I missing ?

A "./" in front of the program name.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: mysql cli - Help

Postby sinkingfish » 01. September 2009 21:20

Thanks so much, do you mind me asking what the "./" does ?
sinkingfish
 
Posts: 9
Joined: 24. January 2008 11:43

Re: mysql cli - Help

Postby Wiedmann » 01. September 2009 21:33

what the "./" does ?

It's a path like "/Applications/XAMPP/xamppfiles/bin".
"." is a the current directory and "/" is the directory seperator.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: mysql cli - Help

Postby Ron Newman » 02. September 2009 20:58

If you just type a command like

mysql

to the shell, it will look in all the directories listed in the $PATH environment variable. You probably don't have "." (the current directory) or "/Applications/XAMPP/xamppfiles/bin" in your $PATH. (I recommend adding "/Applications/XAMPP/xamppfiles/bin" to the path.)
Ron Newman
 
Posts: 15
Joined: 24. June 2009 05:38


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 16 guests