I need help to connect database I need help to connect database
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

I need help to connect database

Started by Rana, December 20, 2007, 07:00:10 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Rana

Hello


Few days ago my site has been hackered .......it was  cpg1.3.5 as a books store , 

the old database and all files are safe

I put them all in a new file and made a new cpg1.4.13 in the main page.....but I don`t know to do connection

between old database and the new cpg1.4.13


please I need your help


thanks

Joachim Müller

Do exactly as suggested in the docs. Set up cpg1.3.5, then upgrade as suggested in the docs. Most recent stable currently is cpg1.4.14.

Rana

thanks alot for your help dear


could  you please give me a link to download cpg1.3.5?



thanks again

Nibbler

Put your old site back up and then update. You don't need to download a copy of 1.3.5

Rana

Hi GauGau


they hackered my copy 1.3.5   , so many php files damaged and I need to upload them again

so I need to download a copy of 1.3.5



thanks Dear


François Keller

 
Quote from: Nibbler on December 20, 2007, 05:26:57 PM
Put your old site back up and then update. You don't need to download a copy of 1.3.5
do what Nibbler suggests: update your gallery with the latest version (1.4.14)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Joachim Müller

The update process requires you to replace all files except the stuff that resides in the albums folder. Subsequently, if you're afraid to re-upload your corrupt cpg1.3.x files, then just make sure that the database is in place as well as the albums folder and the files include/config.inc.php and include/install.lock
Then upload the files from the cpg1.4.x package - this equals the same steps outlined in docs (upgrading section).
However: if your gallery got hacked (because you neglected to update so long although we have warned users that this would happen long ago), the attacker might have left backdoors and malicious files all over the webspace, so you'll have to scan the albums folder carefully for malicious files as well.

Rana

Dear GauGau

THANK YOU FOR YOUR HELP ALWAYS


only one file was hackered (  include/config.inc.php ) ,I re_ upload the old one and everything is oky now  ,should I scan albums file??

and when I made the upgrade to copy1.4.13  becouse it is Autoinstaller in my lockalhost and

I keep all php files in ( include ) I did as they said in docs (upgrading section) but still not working



http://www.tootshamy.com/index.php

Coppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)




(  include/config.inc.php ) is right all informations are right as they are in database.... I dont know where the mistake is

I did a new install also but same error


maybe it is hard for me becouse I am arabic girl but really I try

please help


Joachim Müller

Quote from: Rana on December 22, 2007, 07:05:23 AM
should I scan albums file??
Definitely yes.

Quote from: Rana on December 22, 2007, 07:05:23 AMand when I made the upgrade to copy1.4.13  becouse it is Autoinstaller in my lockalhost
Auto-installers are unsupported. The only supported method is the one discussed in our docs. Auto-installers are crap.

Quote from: Rana on December 22, 2007, 07:05:23 AMCoppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Ask your webhost for support.

Rana

Dear GauGau


I canceled what I did before ,and made all steps as in your docs, I have my site back with cpg 1.4.14 but it's empty

how should I get my album as it was befor?


http://tootshamy.com/shamy2/index.php


thanks

Nibbler

You need to use your old copy of include/config.inc.php

Rana

Deleted the new copy and used the old one I lost the page again and got this result

Coppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)





what should I do?

Nibbler

Your include/config.inc.php file is corrupted. Repair the top of the file so it looks like this:


<?php
// Coppermine configuration file
// MySQL configuration
$CONFIG['dbserver'] =                         'xxx';        // Your database server
$CONFIG['dbuser'] =                         'xxx';        // Your mysql username
$CONFIG['dbpass'] =                         'xxx';                // Your mysql password
$CONFIG['dbname'] =                         'xxx';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg135_';
?>


Rana

I did as you said




Fatal error :

.


While executing query "SELECT extension, mime, content, player FROM cpg135_filetypes;" on 0

mySQL error: Unknown column 'player' in 'field list'




please advise

Nibbler

You need to complete the update process by running update.php

Rana

GauGau

Nibbler


You are great team .....thanks ....thanks......thanks

I am  so happy to have my book store again.....thanks for your help

the last help Ineed is the language ....arabic apears so strange and all section names does not appeare in arabic



please advise

Nibbler

You probably need to use charsetmgr.php to convert your content to utf-8.

Rana

please give the file.... or tell me from where i can get it

I think the language shouls be arabic windows

Rana

I want to ask about old (albums)wich we put it in (edit)....should I put it in the pleace of the new (albums)?

becouse I could not download books



Please be patient as it's difficult for me and  I am doing all my best

Thanks for your help