1

Installed a fresh Bitnami Lamp from here https://bitnami.com/stack/lamp/installer Now the localhost and phpmyadmin in browser is working but when in terminal i typed mysql command in lamp/mysql/bin directory it is saying

mysql command not found.

I am very new to the linux env and have recently installed ubuntu. I don't know if i should save the PATH but it seems to me the path problem will only be if it works inside the bin directory. But it does not work there.

which mysql doesn't do anything at all

3
1

Go to your lampp/mysql/bin using terminal
after that use this

./mysql -u root -p  

hope this will help you..

3
  • 1
    that works, i don't know hwy – Waqar Haider Aug 25 '19 at 10:59
  • mysql -u root -p doesn't work but ./mysql -u root -p does – Waqar Haider Aug 25 '19 at 11:00
  • Because your mysql not installed in /usr/bin or /usr/local/bin but into lamp directory. – abu-ahmed al-khatiri Aug 25 '19 at 11:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.