Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2009, 05:01 PM
Member
 
Join Date: Nov 2008
Posts: 34
Rep Power: 0
ashin is on a distinguished road
Default SWT and mysql
hi ..we have a new project in my school and it is my first time to use mysql to java, just want to ask if im going to create a database where will i put it? i mean same folder where my SWT program is or where?
thank you...
i need ur answer asap..
__________________
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-08-2009, 06:25 AM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
use jdbc, odbc etc to connect to the database in some machine(may be local machine)
download and install mysql to program file or any location you like

create connection in java
refer to MySQL :: MySQL 5.1 Reference Manual :: 21.4.4 Connector/J (JDBC) Reference
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-08-2009, 09:24 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,256
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Basically you have to use a connection to the database, and that connection links with the appropriate database and tables. Databases can placed in any locations, locally or remotely.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-08-2009, 02:49 PM
Member
 
Join Date: Nov 2008
Posts: 34
Rep Power: 0
ashin is on a distinguished road
Default
ok then il try ty
__________________
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-09-2009, 05:46 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,256
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Ya, that's better. Give a try first and get back to here if you stuck on anything.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL/JDBC Mysql query output thelinuxguy Advanced Java 4 02-13-2009 02:57 AM
java to mysql thamizhisai Advanced Java 1 04-26-2008 09:21 AM
mySQL HELP!!! ace84 New To Java 0 04-19-2008 11:39 PM
Mysql Help Sumendra Maharjan Database 1 08-08-2007 02:19 AM
JSP and MySQL Ed JavaServer Pages (JSP) and JSTL 2 07-04-2007 06:08 AM


All times are GMT +2. The time now is 03:40 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org