TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 141
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 81
  • Total: 82
  • @rjen

Database problem with two TP's on one database

Started by nokonium, April 29, 2005, 11:48:59 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Nokonium

I already had a TP test running, own folder and own table prefix, when I tried to install TP on another test board, again own folder and own table prefix. There were problems with the resulting SMF+TP so I uninstalled it. The uninstall exposed a problem with the other installation:

Table '##########.tportal_settings' doesn't exist
File: /[munge]/Sources/TPortal.php
Line: 46

It looks to me like the second install overwrote the first table entries and deleted all of them on the uninstall.

Bjørn

Yes..I am afraid the tables for TP is with a set prefix. So if you install multiple TP+SMF on the same database, there will be errors.

I might add this in future versions though.

Nokonium


borgBOB

Bloc, I have 3 installs of SMF with TP on the same server, and no problems. :)  All are in the same root directory, and all have seperate databases in MySQL.

Check my profile for specs.

Nokonium

I only have one database available, so I can only use different table prefixes for the different instalations.

Bjørn

#5
I will see if I can make all calls to the tportal_xxx tables use a settable prefix. That way you can at least set a new prefix in one place, change it physically in the databse, and just install a new version with the normal prefix. And so on.

hivelord

Quote from: nokonium on April 30, 2005, 08:33:17 AM
I only have one database available, so I can only use different table prefixes for the different instalations.

Out of personal interest, why do you only have 1 database? Is it your hosting deal?

Nokonium

Quote from: hivelord on April 30, 2005, 09:48:17 AM
Quote from: nokonium on April 30, 2005, 08:33:17 AM
I only have one database available, so I can only use different table prefixes for the different instalations.

Is it your hosting deal?

Yes

Nokonium

Quote from: Bloc on April 30, 2005, 09:43:54 AM
I will see if I can make all calls to the tportal_xxx tables use a settable prefix. That way you can at least set a new prefix in one place, change it physically in the databse, and just install a new version with the normal prefix. And so on.

Thanks Bloc

Kindred

Bloc,  what if you just append the SMF prefix from the smf instance?

so, default would be smf_tportal_
if you has a second smf installed, in the same database using jpw as the prefix, the call would go to jpw_tportal_



so call for
FROM $db_prefix.tportal_settings
instead of just
FROM tportal_settings

This website is proudly hosted on Crocweb Cloud Website Hosting.