MySQL from command line

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

MySQL from command line

Postby n00b0101 » 29. April 2009 14:47

Trying to make it so that I can use the mysql command from any directory, rather than having to type in the full path. In my home directory (i.e., /Users/Me), I created a .bash_profile with the following contents:

Code: Select all
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ];
then . ~/.bashrc

# User specific environment and startup programs
export XAMPP_HOME=/Applications/xampp/xamppfiles
export PATH=${XAMPP_HOME}/bin:${PATH}
export PATH
unset Me

And then I typed: source .bash_profile. But I still can't run mysql from any directory... Help?
Posts: 4
Joined: 08. December 2008 17:22

Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 1 guest