Page 1 of 1

can't get to start mysql in my shell

PostPosted: 09. January 2009 23:58
by mokomoko
Hi there. This is my first post :D

I'm having the same problem :evil:

Everything seems to be working properly:
Code: Select all
/opt/lampp/lampp status
Version: XAMPP for Linux 1.7
Apache is running.
MySQL is running.
ProFTPD is running.


But I can't get to start mysql in my shell:
Code: Select all
/opt/lampp/bin$ mysql -u root -p
The program 'mysql' is currently not installed.  You can install it by typing:
sudo apt-get install mysql-client-5.0
bash: mysql: command not found


Does anyone have any idea what is going wrong here?

Thanks

Re: Cannot start MySQL

PostPosted: 10. January 2009 02:36
by Wiedmann
Code: Select all
/opt/lampp/bin$ mysql -u root -p

Code: Select all
./mysql -u root -p


Does anyone have any idea what is going wrong here?

"man bash" can give you a hint, how your shell is searching for programs.

Re: can't get to start mysql in my shell

PostPosted: 10. January 2009 17:17
by mokomoko
Thank you very much for your help, Wiedmann :D
I did a quick read on 'man bash', and now I understand.
Now I can access mysql properly.