Before anything, thanks you, english isn’t my native language and i’m sorry for any mitsake i would make. If my question is stupid, i’m sorry too.
I’m making an application, that allow to export some tables in different format csv: no problem, xls: same, however SQL require more than putting some ",", Using PHPMyAdmin i noticed i can export the db directly in SQL, is their a way to directly get this sql code? I said in java as the app is in java, but ofc it might required something else and that’s not an issue.
Anyways, thanks for going through my messy explanation, have a nice day.
2
Answers
You can run your .sql file with ScriptRunner.
Here is the way you can use it.
you can use mysqldump command this can be used via Runtime.getRuntime().exec()
or else u can go for mysqli approach