I am want to export database table to a file.
I am using the following code, but it gives the following error.
String filename="D:/backup.txt";
I already create
st.executeQuery("select * from tamil into outfile'"+filename+"' fields terminated by ','");
But the error is:
java.sql.SQLException: Can’t
create/write to file ‘D:\backup.txt’
(Errcode: 13)
help me to clear the error
Thanks
But then you need to think how to put all this data into database.
You should consider mysqldump (or similar for other databases) http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
Ever tried phpMyAdmin? You can easily manipulate your database with it.