Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Shashika Thiran

Greenhorn
+ Follow
since Jan 22, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shashika Thiran

finally i manage to find the way to restore using this code.
think this gone help others too

12 years ago
Any way, i want to backup and restore(import and export) MYSQL database using java application(if swing that better) please help me

thank you
12 years ago
now i write code like this..

but it not restore my backup.please help me with this code.
Thanks.
12 years ago
want restore mysql backup file(c:/backup.sql) using java swing.
it's work with dos prompt like this
mysql -u uname -ppword Dname<C:/backup.sql

how can i execute this in java swing.
can anyone help me..
12 years ago
I found the answer of my problem...
It's simple add -r for >
like this..

this is work fine and it create backup.sql file.
now i have problem with restore....

mysqldump -u root -ppword Dname < C:/backup.sql

anyone know the symbol to use instead of "<"
12 years ago
Thank you all of u.I got the point now.I'm working on it now.thanks.
12 years ago
I have printStacktrace() in catch block and file path is fine...it's soething else i think
12 years ago
I use mysqldump to get mysql database backup.it's work fine when i try it on dos prompt.
like this..
>mysqldump -u uname -ppassword databaseName>C:/backup.sql

this will create backup.sql file.
then i try this in java

try{
Runtime rt=Runtime.getRuntime();
rt.exec("C:/Programme Files/MySQL/MySQL Server 5.0/bin/mysqldump -u uname -ppassword databaseName>C:/backup.sql");
catch(IoException e){}

It's runs without errors.But nothing happen.No file create.
Can anyone tell me why this is not work...
can anyone help me..
12 years ago
I plan to map a drive on the Windows box to the Unix box
12 years ago

I want to copy a files from windows to a linux machine and vise versa. any help would be appreciated.

a sample code will be a huge help..
12 years ago
Thanks you guys.I found the way to Separate Huge GUI to jpanels.Thanks.
I am doing java project using netbean 6.5. It has frame contaning a jtabbedPane.
This tabbed contain 10 tabs.Each tab has contain of labels,textboxes,option button...etc.
my private void initComponents() method has all most 5000 code line.problem is when i try to
add more components in to tabbed it won't compile & gives private void initComponents(){} - Code too large error.

So i want to Edit private void initComponents() method in netbean.
Can anyone HELP me?
I want to get screenshot from another computer moniter via network.
I know how do it in same computer moniter.
like this

Dimension screenSize =
Toolkit.getDefaultToolkit().getScreenSize();
Rectangle rectangle = new Rectangle(0, 0, screenSize.width,screenSize.height);
Robot robot = new Robot();
BufferedImage image = robot.createScreenCapture(rectangle);

File file = new File("screen.png");
ImageIO.write(image, "png", file);

any one can help me to get screenshot via network....thanks.
13 years ago
When my java application is running gives java.lang.OutOfMemoryError java Heap
I want to increase JVM memory.
I,m using JDK 6.0 and Netbeans 6.5.
I don't know how to do that.
Can anyone help me!
I want to get mysql data Backup using java swing.
I try to do it using mysqldump but it,s not work for me.
any idea



Runtime rt = Runtime.getRuntime();
rt.exec("c:\\Program files\\MySQL\\MySQL Server 5.1\\bin\\mysqldump -u=user -p=pass database >C:/backup.sql");

13 years ago