Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 959482

Pages: 1
Anonymous
Unregistered




adding mysql support or other database?
      #13180 - 11/06/04 07:08 PM

Im trying to learn java so this article is beyond my ability as I do not consider myself a programmer but I have been reading information about webspiders and seems like a neat idea for collecting information from the web for research how hard would it be to implement a database connection to mysql from this program or other java based webspiders and what about storage options because the information has to be stored somewhere and I would think as much information that is on the web that you could fill your hard drive rather quickly.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Mark Pendergast
Unregistered




Re: adding mysql support or other database? [Re: Anonymous]
      #13728 - 11/30/04 02:21 PM

Java has a database access to MySQL and other databases
via JDBC Connections (see http://java.sun.com/products/jdbc/index.jsp) for more information. What you would do would be to create a database table containing key terms, another table to hold urls, and a third to link the two together. As the spider runs it would add table entries. Database programming in Java is no harder than doing regular file i/o (assuming you know how to code in Java and know some basic SQL commands).


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 5267

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5