I'm trying to use jShell to run MySQLDump.exe to dump a database:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
It fails with:
When I start a batch file via jShell, it works:
jShell
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Batch file "SQLDump.bat"
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I assume the process doesn't need to have admin rights (or has it) because the script DOES run under the same process.
Of course I tried any re-arrangement of the array (values). The format seems to be ok. Any ideas?
			
			
			
				B4X:
			
		
		
		DumpDB.Initialize("DumpDB","C:/xampp/mysql/bin/mysqldump.exe" , _
           Array As String("-u root","-pxxxxx#","dbname","> ", "C:\xampp\htdocs\enctrans\Dumps\test.sql" ))It fails with:
Error: mysqldump.exe: Got error: 1045: "Access denied for user ' root'@'localhost' (using password: YES)" when trying to connect
When I start a batch file via jShell, it works:
jShell
			
				B4X:
			
		
		
		DumpDB.Initialize("DumpDB","C:\xampp\htdocs\enctrans\SQLDump.bat",Null)Batch file "SQLDump.bat"
			
				B4X:
			
		
		
		C:\xampp\mysql\bin\mysqldump -u root -pxxxxx# dbname > "C:\xampp\htdocs\enctrans\Dumps\test.sql"I assume the process doesn't need to have admin rights (or has it) because the script DOES run under the same process.
Of course I tried any re-arrangement of the array (values). The format seems to be ok. Any ideas?
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		