1
Jerklaren
Error.... class/database/databasefactory.php line 34
  • 2005/2/3 15:09

  • Jerklaren

  • Just popping in

  • Posts: 1

  • Since: 2005/2/3 1


Hello folks,

I love Xoops, but the problem is, soon after installation I get this message.

"Error [Xoops]: Unable to connect to database in file class/database/databasefactory.php line 34"

I got it after a couple of hours when I tries XOOPS out on my own computer, then, after thinking the problem had to do with my mysql, I uploaded it to my web site. 20 minutes, and the same thing happens.

How do I solve it? What info do you need?

I use no extra modules or anything. Just a theme.


edit: I have read the posts about this issue, but they don't help me much. My problem is consistent, and I'm the single user who has ever used a session.

Can I do something about it? I have access to phpmyadmin, but I'm not that familiar with sql.

2
traysee
Re: Error.... class/database/databasefactory.php line 34
  • 2005/2/5 7:45

  • traysee

  • Just popping in

  • Posts: 12

  • Since: 2005/2/5 1


I was running a test version on my local machine - went to install XOOPS on my server and how I'm getting that exact same error.

I have tried removing MySQL AND XOOPS and reinstalling both - but I keep getting the same error.

What file needs to be removed or edited?


3
irmtfan
Re: Error.... class/database/databasefactory.php line 34
  • 2005/2/5 8:03

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


traysee & Jerklaren:
do you read this FAQ ?
this is the first step then if your problem doesnt solve go here and post again about issue

4
karedokx
Re: Error.... class/database/databasefactory.php line 34
  • 2005/2/5 8:05

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


i'm trying to assist someone with the same error message as above.

in his case, first his MySQL is always halted, i then found it is the bug a a certain version of php, downloaded the latest stable version, and then he got the above error message.

would really apreciate if someone can help pointing what might have been the cause.

5
irmtfan
Re: Error.... class/database/databasefactory.php line 34
  • 2005/2/5 8:10

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:
downloaded the latest stable version, and then he got the above error message

so what is php version? php 4.3.10 must install with Zend Optimizer 2.5.7 to work properly

6
traysee
Re: Error.... class/database/databasefactory.php line 34
  • 2005/2/5 8:11

  • traysee

  • Just popping in

  • Posts: 12

  • Since: 2005/2/5 1


I know that MySQL service is running....

Fortunately for me, I have my own server so I don't have to work with a hosting company.

I mentioned that the service is "compromised".. I've uninstalled MySQL and removed XOOPS - rebooted my server - then reinstalled both - still got the same error message.

Any ideas?

7
traysee
Re: Error.... class/database/databasefactory.php line 34
  • 2005/2/5 8:42

  • traysee

  • Just popping in

  • Posts: 12

  • Since: 2005/2/5 1


Hey - try this...it worked for me!

Delete all of your cookies and delete all of your temporary internet files (including offline content).

Remember tho...I'm working on my own server - and I'm not working with a hosting site.

But - it's worth a shot.

Thanks for everyones support.

traysee

8
Mithrandir
Re: Error.... class/database/databasefactory.php line 34

It is not a matter of having too few connections allocated is it? If the problem materialises over time, it could sound like something like that; that the resources allocated are exhausted.

If you have a default XAMPP installation, this should not be the case, though.

9
smartgeek
Re: Error.... class/database/databasefactory.php line 34
  • 2005/3/13 0:08

  • smartgeek

  • Just popping in

  • Posts: 1

  • Since: 2005/3/12


I had the exactly the same problem. I also like traysee, have access directly to the server. I even built a new server specifically to track down the problem. The only module causing this problem was SmartFAQ from the guys at SmartFactory.

I ran the lastest everything, but still the problem continued. Until I read traysee's solution and it worked.

Why I have no idea, the only thing logged by MySQL, IIS, W2k3 Server was that the MySQL service stopped.

I started with a get around by telling the service to restart when it errored, but the IE cleardown did the business.

Well done traysee!

Try it out at SMARTgeeks, not alot a content yet, but serves the demo purpose.

Login

Who's Online

131 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits