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?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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