Results 1 to 5 of 5

Thread: SWT and mysql

  1. #1
    ashin is offline Member
    Join Date
    Nov 2008
    Posts
    71
    Rep Power
    0

    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.. :confused:
    :cool:

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    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

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    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.

  4. #4
    ashin is offline Member
    Join Date
    Nov 2008
    Posts
    71
    Rep Power
    0

    Default

    ok then il try ty :)
    :cool:

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. MySQL/JDBC Mysql query output
    By thelinuxguy in forum Advanced Java
    Replies: 4
    Last Post: 02-13-2009, 01:57 AM
  2. java to mysql
    By thamizhisai in forum Advanced Java
    Replies: 1
    Last Post: 04-26-2008, 08:21 AM
  3. mySQL HELP!!!
    By ace84 in forum New To Java
    Replies: 0
    Last Post: 04-19-2008, 10:39 PM
  4. Mysql Help
    By Sumendra Maharjan in forum JDBC
    Replies: 1
    Last Post: 08-08-2007, 01:19 AM
  5. JSP and MySQL
    By Ed in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-04-2007, 05:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •