1
jensclas
Can someone plese help with database error

Yup me again

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

all was going fine. The following things are what I did before this error came up:
1. I followed instructions and changed a password in my XOOPS and my cpanel. after getting help..however I am not sure that is related to this..
2. I also took some modules back out of the trashcan in cpanel -

Any suggestions? - hopefully simple but I am clueless!
Thanks

2
Herko
Re: Can someone plese help with database error
  • 2004/11/11 18:20

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Hi Jenny,

This means that the system cannot connect to the database, probably due to the password change. Make sure the information in mainfile.php is correct (and make sure that the mainfile.php on the server is the correct version, as making it CHMOD 444 will make it impossible to overwrite when uploading a changed version to the server -change it to CHMOD 666 on the server, overwrite and then change it back to 444).

Herko

3
jensclas
Re: Can someone plese help with database error

I fixed it

Search works great doesn't it...I checked up on change password and found it in there - it was the password change in my CPanel that was a problem...

For Newbies...if you change you password to access the administration area of your host server you must also change a file in xoops. So for example I have Fantastico for administration - chenged the password and then got a XOOPS error.
What I had to do was got into the file manager in Fantastico and file the file
public_html/mainfile.php
Open it to edit it

When you scroll down through that file you will find this:

// Database Hostname
// Hostname of the database server. If you are unsure, 'localhost' works in most cases.
define('XOOPS_DB_HOST', 'localhost');

// Database Username
// Your database user account on the host
define('XOOPS_DB_USER', 'youraccount');

// Database Password
// Password for your database user account
define('XOOPS_DB_PASS', 'youraccount password');

change your password - touch nothing else! save the file and all will be well.

Login

Who's Online

149 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 149


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