Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Installing on a Linux/Unix Server / Database table names vs add-on modules

Database table names vs add-on modules

Started by willsy on 20 Jul 2011, 4:51 PM · Views: 1,011

Results 1 to 3 of 3
20 Jul 2011, 4:51 PM
#1
willsy avatar

willsy

New Zenner

Join Date:
Mar 2008
Posts:
15
Plugin Contributions:
0

Database table names vs add-on modules

Hi Gurus,

I have a live site, which got installed with a database table prefix of znc_ on every table. Which is fine until I go to install an add on module where it fails because it can't find the right table names.

Question is, other than editing the install.sql of every add-on module is there another course of action I could take to fix this so I don't have this hassle every time I try to install a new module ?

Cheers,
Willsy

20 Jul 2011, 5:03 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Database table names vs add-on modules

Are you having problems with the SQL patch not installing to the right tables, or with the mod not finding the right tables in operation? It sounds like the former.

The solution to this is to paste the install.sql content into Tools > Install SQL Patches instead of trying to use it directly in phpMyAdmin. The Install SQL Patches page automatically detects any table prefixes and adjusts for them.

20 Jul 2011, 5:42 PM
#3
willsy avatar

willsy

New Zenner

Join Date:
Mar 2008
Posts:
15
Plugin Contributions:
0

Re: Database table names vs add-on modules

gjh42:

Are you having problems with the SQL patch not installing to the right tables, or with the mod not finding the right tables in operation? It sounds like the former.

The solution to this is to paste the install.sql content into Tools > Install SQL Patches instead of trying to use it directly in phpMyAdmin. The Install SQL Patches page automatically detects any table prefixes and adjusts for them.

You are absolutely right gjh42, I was using PHPAdmin. A little knowledge is a dangerous thing sometimes. Thanks so much, "Install SQL Patches" worked perfectly ! :smile: