1
fred_lim
Fatal error
  • 2003/10/7 7:36

  • fred_lim

  • Just popping in

  • Posts: 1

  • Since: 2003/10/6


I got this error during installation.

Fatal error: Unable to connect to database in /var/www/html/class/database/databasefactory.php on line 34

I am using RedHat 9, all require package are installed.

I can access the database as root.

mysql> status
--------------
mysql Ver 11.18 Distrib 3.23.54, for redhat-linux-gnu (i386)

Connection id: 32
Current database: wkportal
Current user: root@localhost
Current pager: stdout
Using outfile: ''
Server version: 3.23.54
Protocol version: 10
Connection: Localhost via UNIX socket
Client characterset: latin1
Server characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 29 min 55 sec

Threads: 2 Questions: 42 Slow queries: 0 Opens: 8 Flush tables: 1 Open tables: 2 Queries per second avg: 0.023
--------------

mysql> quit

2
mvandam
Re: Fatal error
  • 2003/10/7 8:14

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


I assume you're using the same root user/password combination in XOOPS setup. Do you have the server set to 'localhost' or whatever it should be? Double-check the spelling of everything. Whch version of XOOPS are you running? One early version of 2.0.4 (I think it has been repackaged now) had a small problem in the installer which gave this error.

I would also recommend creating a MySQL user for XOOPS instead of using 'root'. That way you can give access just to the XOOPS database and not all databases running on your server.

Login

Who's Online

404 user(s) are online (288 user(s) are browsing Support Forums)


Members: 0


Guests: 404


more...

Donat-O-Meter

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

Latest GitHub Commits