Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-24-2007, 06:53 PM   #1
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
Sharing WP MySQL

Pretty sure I read here that you can have multiple WP blogs on one MySQL database.

Can someone confirm this for me?
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 07:10 PM   #2
RawAlex
So Fucking Banned
 
Join Date: Oct 2003
Location: In a house.
Posts: 9,465
I wrote a little routine that I use to pull the newest post from the WP database and use it to show on another site. Yes, in theory, you can access the data and use it in more than one place.

However, because WP puts all the site information and such into the DB, it is hard to get around stuff. You would have to make a nice custom hack to use one database for the site information (which includes all the links, categories, the base URL, etc) and another to get the posts.

That would probably get ugly.
RawAlex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 07:14 PM   #3
viki
Confirmed User
 
viki's Avatar
 
Join Date: Jan 2005
Posts: 2,640
You can setup blogs or other scripts on the same DB as long as you put a different table prefix on during the install.
__________________

viki [at] realsexcash [dot] com
228 263 454
viki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 07:46 PM   #4
jacked
sperm tail
 
jacked's Avatar
 
Industry Role:
Join Date: May 2004
Location: nj
Posts: 11,019
Quote:
Originally Posted by viki View Post
You can setup blogs or other scripts on the same DB as long as you put a different table prefix on during the install.
first time i noticed it in the wp-config the other day

Code:
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!

// Change this to localize WordPress.  A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

/* That's all, stop editing! Happy blogging. */
this is under the MySQL settings in the config just change the prefix to wp_1 instead of wp_ , and you should be good to go.
__________________
Got Cam Models?
icq: 361-607-616
jacked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 07:47 PM   #5
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
thank you, every one
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2007, 03:15 PM   #6
Subway
Confirmed User
 
Industry Role:
Join Date: Apr 2004
Location: Here
Posts: 584
It is possible but is it wise ?

I rather have 100 small mysql databases than 1 large database.

Much better if you want to restore
Subway is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2007, 04:20 PM   #7
ClickBuster
Confirmed User
 
Join Date: May 2004
Posts: 210
Quote:
Originally Posted by jacked View Post
first time i noticed it in the wp-config the other day

Code:
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!

// Change this to localize WordPress.  A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

/* That's all, stop editing! Happy blogging. */
this is under the MySQL settings in the config just change the prefix to wp_1 instead of wp_ , and you should be good to go.
Yeah, DON'T DO THAT! That will only change the configuration, but not the actual table names. Table prefix is configure BEFORE the tables are created But yeah, you can put 100s of them in 1 single db and watch it crash
__________________
-- ClickBuster
-- ICQ# 263653704
-- Email: clickbuster1 [-at-] gmail [-dot-] com
ClickBuster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2007, 06:21 PM   #8
GreyWolf
So Fucking Banned
 
Join Date: Jun 2007
Posts: 2,036
Quote:
Originally Posted by Subway View Post
It is possible but is it wise ?

I rather have 100 small mysql databases than 1 large database.

Much better if you want to restore
Wot he said ^^^

Keep it simple and spread the risk.
GreyWolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2007, 06:23 PM   #9
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
Quote:
Originally Posted by Subway View Post
It is possible but is it wise ?

I rather have 100 small mysql databases than 1 large database.

Much better if you want to restore
well, the person asking only had 3 blogs, but point taken
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.