1
mssffa
Problem with connection to database with freash 2.0.10 installation
  • 2005/6/2 23:10

  • mssffa

  • Just popping in

  • Posts: 3

  • Since: 2005/6/2 2


Hi all,

I just tried to instal XOOPS 2.0.10 unto a linux sever and got a "Could not connect to the database server error"

The same thing happen to me when installing an other CMS and I fixed the problem by using the following connection string that my isp said I should use:

$dbh=mysql_connect ("localhost", "USER_NAME", "") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("DATABASE_NAME");

I was going to try the same solution with xoops, but I cannot figure out where to place it.

Thanks in advance.

2
Catzwolf
Re: Problem with connection to database with freash 2.0.10 installation
  • 2005/6/2 23:21

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Code very much like this is already in XOOPS and is used to connect to the database.

I am not sure if this a problem with the version of XOOPS you are trying to use but someone else I have spoken to had the same issue and reverted back to the stable version and it worked. Try that out first. Can you give us your server stats and it could help us debug this issue for the next version?

3
mssffa
Re: Problem with connection to database with freash 2.0.10 installation
  • 2005/6/2 23:31

  • mssffa

  • Just popping in

  • Posts: 3

  • Since: 2005/6/2 2


I thought that XOOPS 2.0.10 (released 23 Apr '05) was the stable version -- am I mistaken?

Here are the server stats:

Operating system: Linux
Kernel version: 2.4.20-42.9.legacysmp
Apache version: 1.3.33 (Unix)
PERL version 5.8.6
Path to PERL: /usr/bin/perl
PHP version 4.3.10
MySQL version 4.0.24-standard

I've double checked the data base name and user (and made sure that the user has all privileges).

4
mssffa
Re: Problem with connection to database with freash 2.0.10 installation
  • 2005/6/3 3:24

  • mssffa

  • Just popping in

  • Posts: 3

  • Since: 2005/6/2 2


Problem solved. (It was a simple typo that I had missed.)

Login

Who's Online

330 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 330


more...

Donat-O-Meter

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

Latest GitHub Commits