I'm trying to import a database from Wamp to Xampp. I run Lampp first, then go to
/opt/lampp/bin and run:
mysql (or mysqladmin ?) -u root -h localhost
but I get:
mysql: command line not found
Why isn't it working?
Typically the current directory (
.) is not inside the PATH for security reasons (assume a user puts an evil executable called
ls in /tmp and then
root executes it ...).
You can either call it explicitly:
./mysql -uroot -hlocalhost
Or you could add the folder to your PATH:
export PATH=/opt/lampp/bin:$PATH mysql -uroot -hlocalhost