Reputation: 10077
I have just installed XAMPP and I went to the command line and typed 'mysql' and I got the following error:
"command not found"
When I specify where mysql is located "/Applications/XAMPP/xamppfiles/bin/mysql -u root"
it works fine so I'm just wondering how I could create a link so that I don't have to type the full path name each time?
Thanks
Upvotes: 3
Views: 8580
Reputation: 4998
You'll want to put it in /usr/bin if you want to be able to type just mysql
ln -s /Applications/XAMPP/xamppfiles/bin/mysql /usr/bin/mysql
Upvotes: 14
Reputation: 11
ln -s [actual mysql directory] [symlink directory]
i.e.: ln -s /Applications/XAMPP/xamppfiles/bin/mysql /home/user/me/mysql
Upvotes: 1