•  » Requests
  •  » A problem - Could not connect to database

#1 2008-04-21 14:35:07

Haribda
Member
2008-02-28
27

A problem - Could not connect to database

When I open my gallery, I get

Could not connect to database

I haven't changed anything, but what can this be?

Thank you very much.

Offline

 

#2 2008-04-21 16:09:05

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A problem - Could not connect to database

Try to access to your MySQL database.

Maybe you have a phpMyAdmin access from your Host provider.
If you can't access to your database, call their support.

If you can access to your database, check your ./include/mysql.inc.php
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2008-04-21 20:55:13

Haribda
Member
2008-02-28
27

Re: A problem - Could not connect to database

Hi there,

I have phpmyadmin, what shall I do next? I can not find include/mysql.... What shall I do after I open phpmyadmin?

Offline

 

#4 2008-04-21 21:00:53

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A problem - Could not connect to database

You don't have ./include/mysql.inc.php ?

There is no reason to loose it.

Via phpMyAdmin check if phpwebgallery_plugins exist already, and tell me.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#5 2008-04-21 23:11:20

Haribda
Member
2008-02-28
27

Re: A problem - Could not connect to database

I only got this far...What shall be next?

Last edited by Haribda (2008-04-22 18:17:44)

Offline

 

#6 2008-04-22 07:07:56

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A problem - Could not connect to database

Your database seems safe.

So create or restore your ./include/mysql.inc.php
It look like this:

Code:

<?php
$cfgBase = 'aviation_galerija';
$cfgUser = 'xxxxxxxxxxxxxxx';
$cfgPassword = 'yyyyyyyyyyyyy';
$cfgHote = 'localhost';

$prefixeTable = 'phpwebgallery_';
define('PHPWG_INSTALLED', true);
?>

Replace xxxxxxxxxxxxxxx and yyyyyyyyyyyyy by your MySQL user/psw
And maybe the host (localhost) depending on your hoster directives.

8-)

PS: No explanation, except you scratch it or vulnerabilities somewhere on the server.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#7 2008-04-22 18:22:45

Haribda
Member
2008-02-28
27

Re: A problem - Could not connect to database

Hi,

I found that file where and it exists and it is perfecly fine. I opened it but everything was OK. Hm, I'm confused...

Offline

 

#8 2008-04-22 19:13:30

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A problem - Could not connect to database

Could we have a link to your west Macedonian gallery?
Thanks.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#9 2008-04-23 17:46:56

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A problem - Could not connect to database

Download 1.7.1
Unzip
Remove ./include/mysql.inc.php from the unzipped folders.
Transfer

Tell us.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#10 2008-04-23 18:55:45

Haribda
Member
2008-02-28
27

Re: A problem - Could not connect to database

I just did it and nothing changed, its the same... :( Other solutions?

Offline

 

#11 2008-04-23 20:07:44

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A problem - Could not connect to database

.htaccess ???

I sent you a mail.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#12 2008-05-06 19:53:10

Haribda
Member
2008-02-28
27

Re: A problem - Could not connect to database

Hi VDigital,

I was away on a trip and I couldn't answer on your email. My hosting company solved the problem, it was a missing username from the db. Now the gallery works well, but when I try to go to my admin panel I get this message.

Template->make_filename(): Error - file ./template/flop_pure_design/admin/check_integrity.tpl does not exist

I downloaded the flop pure design but I there's no check_integrity.tpl in the folder.

Where can I find it?

Thank you in advance.

Offline

 

#13 2008-05-10 18:50:45

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A problem - Could not connect to database

Haribda,

I was away too.
I will check my mails asap.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#14 2008-05-20 14:30:18

Haribda
Member
2008-02-28
27

Re: A problem - Could not connect to database

Hi VDigital,

Anynews on my problem with my admin login? I have some pictures that I can not publish hehe.

Please if you have some time take a look.

Offline

 

#15 2008-05-20 14:41:18

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A problem - Could not connect to database

Sorry, I am disconected from your problem. Could you send me again all elements?
I promise to take time for you.
8-/


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 
  •  » Requests
  •  » A problem - Could not connect to database

Board footer

Powered by FluxBB