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 November 29th, 2004, 12:35 PM
markfj markfj is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 markfj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Database Query

Hi

I run an auction site under URL and I running forums under URL they are currently under two different databases.

I am trying to get the to share the 1 database but have followed these steps:
Part A: Exporting a Database
Code:
1. Log-in to phpMyAdmin. (It can be accessed from Your CPannel>MySQL Databases>phpMyAdmin)
2. Click on your old database you want to export, then wait for the right frame to load.
3. Click on the EXPORT tab at the top of the right frame.
4. Select Data & Structure, hit Select All (For whole database), check Save as File, then hit GO!

Part B: Importing a Database
1. Log-in to phpMyAdmin. (It can be accessed from Your CPannel>MySQL Databases>phpMyAdmin)
2. Click on the new database, that you want to import your old one into.
3. Click the SQL tab at the top of the right frame.
4. At the bottom, it'll say "Or Location of the textfile". Hit browse, and select the file you exported.
5. Hit GO, and wait for everything to upload.


it didnt work, and I spoke to the person who wrote that and they said "It IS possible to do what you're doing, but it's not as easy as joining the databases. my hope would be to ask a PHP coder

Any help at the moment is greatly appreciated!

Thanks, Mark

Reply With Quote
  #2  
Old December 4th, 2004, 10:49 AM
Madpawn Madpawn is offline
My beat is correct.
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 339 Madpawn User rank is Private First Class (20 - 50 Reputation Level)Madpawn User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 22 h 3 m 33 sec
Reputation Power: 4
That person's right -- you need to change your code to have both section point to the same db. Depending on how your db's are set up, this may be pretty simple or a bit complicated. At the very least, you'll have to change your mysql_select_db() commands to pick the new db.

But that's a job for the php forums. Before tackling that, you need to make sure your db's are being joined. When you say what you tried through phpMyAdmin didn't work, what exactly did you mean? Did you get an error of some sort?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Database Query


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 5 hosted by Hostway