Master:
# 1    Runtime.getRuntime().exec("mysql .."); does not work                  
hans
Online no
State
Grouping Member
Class class4
Score 221
Wealth 155.5
Posts 156
Login 21:17:46
I wanted to run mysql commands and populate data to database in window system.
It only always display mysql version and help msg, nothing else happed.
Hits: 1033, Date: 2010-05-13 09:21:12
[Agree] ( 14 ) [Against] ( 12 )

# 2    I have solved the problem                  
hans
Online no
State
Grouping Member
Class class4
Score 221
Wealth 155.5
Posts 156
Login 21:17:46
it should be:
Runtime.getRuntime().exec("cmd /c mysql ..");
Hits: 1032, Date: 2010-05-13 10:38:30
[Agree] ( 13 ) [Against] ( 14 )

# 3    yes, cmd is neccesary                  
luke1
Online no
State 453
Grouping Super Admin
Class class4
Score 250
Wealth 62
Posts 230
Login 07:37:57
yes, cmd is neccesary
Hits: 1024, Date: 2010-05-13 23:08:45
[Agree] ( 13 ) [Against] ( 12 )

1 - 3 [ 3]

Reply: Runtime.getRuntime().exec("mysql .."); does not work

*First line:


More content:


Tags:



Hint: You cannot post here before loginLogin | Register

nothing