MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 28th, 2004, 08:22 AM
mwichmann4 mwichmann4 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 80 mwichmann4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 45 sec
Reputation Power: 5
Master Mysql Db

Hey Everyone,

Does any one know where the master db for mysql is, and if it has meta data. I need to know this because I am building a search engine based off what google does. Any help would be great.
__________________
Nothing is Everything

Reply With Quote
  #2  
Old January 28th, 2004, 08:50 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
What do you mean?

Mysql's data files are in the data folder within your mysql directory...
but I assume they're encoded somehow for security reasons...

perhaps you could explain more?

Reply With Quote
  #3  
Old January 28th, 2004, 03:53 PM
mwichmann4 mwichmann4 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 80 mwichmann4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 45 sec
Reputation Power: 5
how do i join two databases together in a query to search for article_ids? Just the basic query structure would help me. Thanks

Reply With Quote
  #4  
Old January 28th, 2004, 04:54 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Try this method... I've used it once before on SQLServer, but i'm guessing it's a standard. The method is similar in notation to table.fieldname - you just add the db name in front, and use 2 dots
Code:
SELECT articleid FROM articleDB..articles INNER JOIN
someotherDB..someothertable
WHERE someotherDB..someothertable.keywords like '%foo%'

Reply With Quote
  #5  
Old January 28th, 2004, 09:37 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
I'm not sure if the two dots (..) would pose a problem in MySQL (I think they would), so just replace them with single quotes... Stumpy's code is bang on.

There's a great tutorial over on Dev Shed that will clear up JOIN issues for you:

Understanding SQL Joins

Reply With Quote
  #6  
Old January 29th, 2004, 07:22 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
You can do cross-database joins in mysql 4, but I'm not sure of the syntax. It's probably dbname.tablename.fieldname. Check mysql.com to verify.

Reply With Quote
  #7  
Old January 29th, 2004, 02:44 PM
mwichmann4 mwichmann4 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 80 mwichmann4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 45 sec
Reputation Power: 5
Thanks for everything you guys have been posting so far, but this is far from over. I got it querying both db's now and matching up article_id's. The challenge is now is removing duplicates.

I am creating search method that is a bit different than the norm, i think google does it this way. Basically each table represents a keyword and in that table is an article_id that has that keyword found.

Right now i have two tables and in there the word mysql
appers. So i would naturally get the same id into my result set
twice. Now i have tried the distinct function but that does not seem to work real great. What about a union statement?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Master Mysql Db


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway