PDA

View Full Version : how to use lampp's mysql for other programme


mak1012
01-06-2008, 11:38 AM
hi,
i have installed the lampp server in ubuntu hardy. I have some Question to ask.
1. Can i use the mysql of lampp server for java?
2. After starting lampp server when I give a command mysql to terminal it gives me this error

ak@makomania:~$ sudo /opt/lampp/lampp start
[sudo] password for mak:
Starting XAMPP for Linux 1.6.6...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
mak@makomania:~$ mysql
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


please advise me how i use the mysql for other programme.

mehulved
01-06-2008, 11:52 AM
Well the mysql of lampp isn't in the environment variable PATH that is why this is happening.

kalpik
01-06-2008, 12:52 PM
You need to cd to /opt/lampp/mysql/bin