Current location: Hot Scripts Forums » Programming Languages » PHP » Clear my misunderstanding: 1 MySQL database for many programs?

Clear my misunderstanding: 1 MySQL database for many programs?

Reply
  #1 (permalink)  
Old 08-21-05, 02:29 AM
iKwak iKwak is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Question Clear my misunderstanding: 1 MySQL database for many programs?

Hello there,

I been using CPanel for more than two years and I need to know something about MySQL.
I frequently use PHP and MySQL to install softwares for websites. My webhost offered 10 MySQL databases for my use.

So far, I have used up all 10 databases to install 10 programs (Wordpress, Invision Board, gallery scripts, and etc.).

I recently found out that I can install two programs using only 1 database! I can use the same database name and password and only alter the table name.



My question to you: Can I use only 1 MySQL database to install 3 different programs under one domain?
i.e. programmingtalk.com, programmingtalk.com/forums/ (vBulletin), programmingtalk.com/blog/ (Wordpress), and programmingtalk.com/books/ (some script) with 1 MySQL database


Thank you in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-21-05, 02:52 AM
Wuiqed Wuiqed is offline
Wannabe Coder
 
Join Date: Aug 2004
Location: Sverige
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Of course, you can have an (I think) unlimited amount of tables in a database. The hardware in the computer will probably limit you before mysql does

On a side note: I only use one database per site I make. And I always give the tables a prefix like "forum_users", "forum_posts", "forum_threads", "blog_posts", "blog_comments" and so on. Try to organize your tables something like that and you won't get lost in PhpMyAdmin

Last edited by Wuiqed; 08-21-05 at 02:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 08-21-05, 05:38 AM
monkey123 monkey123 is offline
Newbie Coder
 
Join Date: Jan 2005
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Wuiqed
Of course, you can have an (I think) unlimited amount of tables in a database. The hardware in the computer will probably limit you before mysql does

On a side note: I only use one database per site I make. And I always give the tables a prefix like "forum_users", "forum_posts", "forum_threads", "blog_posts", "blog_comments" and so on. Try to organize your tables something like that and you won't get lost in PhpMyAdmin
Yes, I second that. My host only allows 1 database and I have 4 different things installed on it. I have a PHPBB forum, a gallery, a poll and a newsletter. just use prefixes like Wuiqed said.
__________________
Monkey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 08-21-05, 12:50 PM
iKwak iKwak is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
I appreciate the response guys. I never knew that! Now I do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Form to update a MySQL database? Scoobler PHP 9 09-04-08 01:41 AM
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
Flat file vs mysql database Imusion PHP 5 06-13-06 12:10 PM
Need help to store images in mysql database sjems PHP 2 04-12-05 05:36 AM
Error while creating database (Errornumber 2002: "Can't connect to local MySQL server lylesback2 PHP 5 04-11-04 01:37 PM


All times are GMT -5. The time now is 03:48 AM.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.