java - Database downloaded as an .sql file - how to best access it? -


what's best way visualise in table form? how later on access within java code?

the extension of file not relevant here. open file have downloaded , check whether has relevant sql. more likely, file have downloaded have ddl statements 'create table'.

if database using mysql, can use gui based tools wamp, give option import database file.

if want use command line in mysql, use mysql -u root -p < file.sql

regarding accessing database java. can use jdbc that.

1) depending on database using, first download appropriate driver jar file.

2) use jdbc classes (drivermanager, statement, preparedstatement etc) relevant database ddl/dml operatiions.


Comments