What each table means.

Support for IntegraMOD 140

Moderator: Integra Moderator

What each table means.

PostAuthor: Bush » Thu Apr 27, 2006 2:37 pm

Does anyone have any information on exactly what table is for what..

I'm just trying to figure out how everything works between php and mysql <img>
Last edited by Bush on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 8:55 am
Cash on hand: 0.00

Re: What each table means.

PostAuthor: found it » Fri Apr 28, 2006 2:24 am

ouch thats a tall order.....

a good place to start is http://www.mysql.com

and set yourself up for a good read.....

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 4:29 am
Cash on hand: 0.00

PostAuthor: Bush » Fri Apr 28, 2006 9:00 am

okie dokie, now that i got my live site fixed, i think its time to dismantle the test site and figure out how this stuff really works.
Last edited by Bush on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 8:55 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Fri Apr 28, 2006 9:12 am

Bush, if you could, would you mind including info here as you discover it? It will probably help others as well. (Like myself) <img>
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Bush » Fri Apr 28, 2006 10:03 am

Yes sure. <img>

I think it will be a colaberation of all of us though, if we're going to discover as users what each table represents and what data it holds.

I want to know this for backup purpose. If anything goes wrong with my live site, i'd atleast like to be able to restore certain tables in the database (posts/users).

Bush
Last edited by Bush on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 8:55 am
Cash on hand: 0.00

Re: What each table means.

PostAuthor: Dragonsys » Fri Apr 28, 2006 10:18 am

If you want to know which DB table goes with which section of IM... start by looking in the includes/constants.php file. In that file is where the relationship, between sections of phpBB and the DB, are kept.

For example:

Code: Select all
define('ACRONYMS_TABLE', $table_prefix.'acronyms');


The above line shows that the Acronyms page uses the phpb_acronyms table (assuming that you are using the defualt table prefix of phpbb_)

If you want to know how phpBB (IM) interacts with the database, then you need to understand SQL ([url=http]http://www.mysql.com[/url]) calls and do some reading up on php (http://www.php.net), and look at the files for phpBB, paying attention to anywhere you find SQL or $sql.

Your best bet, if this is just for backup/restore purposes, is to backup and restore the entire IM DB.
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: Bush » Fri Apr 28, 2006 10:25 am

It sorta is for backup purposes, peace of mind and actually learning how this thing ticks a little better.

Whenever i've tried to backup/restore a database in myphpAdmin it always gives me execution errors, or some other type of error. I'll have to dig it up so I can show you, but either way I use MySQL Admin which can be found at http://www.mysql.com - Its a great application that you can use to monitor your databases and "mess" around with them.

Overall though, I'd like to be able to know more about how php and sql work together, so that I can better support the growing integramod community. I really like the integration into phpBB that you guys have managed to get together and offer us! I've had many questions that i've needed answers for and the current guys here have been great to lend a hand and i'd like to do the same in return (no matter the differences between IM.com and IM2.com)

Thanks for the info btw DragonSys - That seems like a great place to start!

One last thing, are there any books or tutorial websites you guys could recommend, that contains information about how php and sql communicate, i'm pretty sure that i'm understanding the structure of the database and tables, just not sure what goes where quiet yet. <img>
Last edited by Bush on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 8:55 am
Cash on hand: 0.00

Re: What each table means.

PostAuthor: Dragonsys » Fri Apr 28, 2006 10:58 am

I can understand all that :D
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: Adrian Rea » Sat Apr 29, 2006 3:40 am

The 2mb limit is really restricting so I recommend mysqldumper. It will perform your backups and and enable you to restore a large dm without hassle. I have just restored a 210Mb db in 12 minutes and no problem.
http://www.mysqldumper.de/en/index.php

A
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

Re: What each table means.

PostAuthor: Bush » Sat Apr 29, 2006 9:35 am

Thanks A! I have found this program too, [url=http]MySQL Administrator[/url] which was developed by the guys over at mysql.com and it is able to handle a database restore and backup of anysize as well!

Thanks!
Last edited by Bush on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 8:55 am
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Helter