LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   unusual problem with SSH (https://www.linuxquestions.org/questions/linux-general-1/unusual-problem-with-ssh-341487/)

varunbihani 07-08-2005 11:58 PM

unusual problem with SSH
 
I am having this unusual problem with SSH.. I am trying to run execute this command to the runthe mysql on my Mandrake server through SSH Version 3.2.5 (installed on my window local machine that I had downloaded from www.ssh.com)

/usr/bin/mysqld_safe --skip-grant-tables --user=mysql &

Now as soon as I close the SSH window, my java/jsp programes stops making connection with my mysql server..
though mysql is running fine, php and perl are able to connect to db server but tomcat(JSP/Java) files are not....

Can nebody help me in solving this really unusual problem..

chakkerz 07-09-2005 02:57 AM

Firstly you should start your Mysql server via tha /etc/init.d or /etc/rc.d structure. Depending on your linux distro there are tools to configure this sometimes also.

Secondly, if you must do it the way you are doing, use ssh to connect like you did. Start screen (you may need to install it first). run the command you want to run (without the & will be fine) and then press Ctrl+AF - After that you can shut ssh down and the program will keep running.


All times are GMT -5. The time now is 09:21 PM.