LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Runnig mysql client using ssh (https://www.linuxquestions.org/questions/linux-newbie-8/runnig-mysql-client-using-ssh-860995/)

anaskoara 02-06-2011 04:47 AM

Runnig mysql client using ssh
 
Hi
I want to run mysql client on other machine

I've setup the ssh keys

and trying the following command
ssh root@anothermachine mysql -uuser -ppass database<script.sql

but it hang and nothing happens

what is my problem

Regards

goodhombre 02-06-2011 07:38 AM

Hi,

Try this :
Code:

ssh root@anothermachine 'mysql -uuser -ppass database<script.sql'


All times are GMT -5. The time now is 11:37 PM.