I have a strange issue. On my PC with Linux Mint 17 I can access mysql just by typing mysql
in the terminal, but on my laptop (with Ubuntu 15.04) I have to type each time /opt/lampp/bin/mysql
(both have the latest XAMPP version installed).
So my question is: how to make mysql "global" and accessible by just typing "mysql"?
You need to add /opt/lampp/bin/
to your $PATH
so that the system can find the binary file.
From the command line enter:
PATH=$PATH:/opt/lampp/bin