Im trying to Write a java Program to connect to a remote server where my database is located and do a "mysqldump"

2019-01-19T16:06:46

I am trying to connect to my database on a server and create a MySql dump using java, but it results in:

Runtime.getRuntime().exec(" mysqldump   -h 10.10.104.1 -P 3XX6 -u xxxxxx -pXXXXX snappoint > backup.sql");
java.io.IOException: Cannot run program "mysqldump":

what am I doing wrong?

Copyright License:
Author:「issac john」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/54265212/im-trying-to-write-a-java-program-to-connect-to-a-remote-server-where-my-databas

About “Im trying to Write a java Program to connect to a remote server where my database is located and do a "mysqldump"” questions

I am trying to connect to my database on a server and create a MySql dump using java, but it results in: Runtime.getRuntime().exec(" mysqldump -h 10.10.104.1 -P 3XX6 -u xxxxxx -pXXXXX snappoint ...
I was trying to build an small code where I want to create some string and transfer that string to a file (that should be created in runtime) located in remote server. In my case the remote server is
I have a new situation. I had a javascript running successfully on aArduino YUN board that was basically querying a MySql server located on a server with an IP address (aaa.bbb.ccc.ddd). I am basic...
I have created SpringBoot application which connectes to the remote database mysql. I test it with two remote db connection: one has a dynamic IP, the second one has a permanent IP - it's a hosting.
How can i connect from SQL server 2012 database to a MySQL remote database? The source DB is located in an internal domain of our enterprise and the target DB is located in external one. Is posible...
I have the following information about the remote server. IP address Database user name Database password Database name I can even connect to the remote server using azure data studio, running on...
I am trying to separate my mysql server from my web application server. I use node.js and zongji to listen for changes in the bin log on certain tables. When a change is made node pings the client
I have recently accepted a project from a company. I have to display data from there database. I got the files on my local computer and created a program to their liking but when I replace the path...
I am having Java program and MySQL database running on the remote server. Now what I want is to establish a communication and to be able to execute queries (select, insert, delete, update) from java
I needed to make an application connect with a oracle database located in the same network (ping the host works fine), but not in the same machine (i.e. an remote server). I developed then a software

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.