Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Moved server, problem with the sql  (Read 3571 times)

0 Members and 1 Guest are viewing this topic.

h4nh4n

  • Translator
  • Coppermine novice
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 38
  • God loves you!
    • Indonesian Actress
Moved server, problem with the sql
« on: March 08, 2007, 09:07:59 am »

I am using Coppermine Photo Gallery v1.4.8 in the old webserver then I installed a new version of the gallery (1.4.10) on the new server, I try to import the old sql  to the new server and I got an error in phpmyadmin:
Code: [Select]
Error

MySQL said: Documentation
#1062 - Duplicate entry 'disk?' for key 1
I have tried to search 'disk?' but no luck, can't find it.

when I try to access to the homepage/index of the gallery it showing
Code: [Select]
While executing query "SELECT * FROM cpg_config" on 0

mySQL error: Table 'h4nh4n_copp1.cpg_config' doesn't exist


Anyone know what's the problem?

Thanks in advance :)
« Last Edit: March 09, 2007, 10:45:33 pm by Nibbler »
Logged
Artis Indonesia - Albums of Indonesian Actresses
Johan Ng - Personal Website

h4nh4n

  • Translator
  • Coppermine novice
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 38
  • God loves you!
    • Indonesian Actress
Re: Moved server, problem with the sql
« Reply #1 on: March 08, 2007, 10:27:53 am »

Okay, I have fixed the problem in phpmyadmin (just compared the new one and old one).

However I still got an error msg in index, and I think its because the table names are different between two version.

for example table for banned in the old version
Code: [Select]
--
-- Table structure for table `cpg148_banned`
--

DROP TABLE IF EXISTS `cpg148_banned`;
CREATE TABLE `cpg148_banned` (
  `ban_id` int(11) NOT NULL auto_increment,
  `user_id` int(11) default NULL,
  `ip_addr` tinytext,
  `expiry` datetime default NULL,
  `brute_force` tinyint(5) NOT NULL default '0',
  PRIMARY KEY  (`ban_id`)
) TYPE=MyISAM;


and the new one like
Code: [Select]
--
-- Table structure for table `cpg_banned`
--

CREATE TABLE `cpg_banned` (
  `ban_id` int(11) NOT NULL auto_increment,
  `user_id` int(11) default NULL,
  `ip_addr` tinytext collate latin1_general_ci,
  `expiry` datetime default NULL,
  `brute_force` tinyint(5) NOT NULL default '0',
  PRIMARY KEY  (`ban_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
Logged
Artis Indonesia - Albums of Indonesian Actresses
Johan Ng - Personal Website

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Moved server, problem with the sql
« Reply #2 on: March 08, 2007, 12:53:29 pm »

In include/config.inc.php, you will need to update the table prefix variable.
Logged

h4nh4n

  • Translator
  • Coppermine novice
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 38
  • God loves you!
    • Indonesian Actress
Re: Moved server, problem with the sql
« Reply #3 on: March 09, 2007, 10:33:12 pm »

thanks TranzNDance,

the problem has been solved  :D
Logged
Artis Indonesia - Albums of Indonesian Actresses
Johan Ng - Personal Website
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.