MYSQL Error

Status
Not open for further replies.

Chetz

Member
Messages
44
Reaction score
0
Points
6
Hi,

I have a phpBB2 site. It was all alright until the changeover and other things. (I'm on absolut).

www.chetz92.co.uk

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/chetz/public_html/phpBB2/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/chetz/public_html/phpBB2/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database
This is my config file:
<?php


// phpBB 2.x auto-generated config file
// Do not change anything in this file!

$dbms = 'mysql4';

$dbhost = 'localhost';
$dbname = 'chetz_current';
$dbuser = 'chetz_chetz';
$dbpasswd = 'PASSWORD';

$table_prefix = 'phpbb_';

define('PHPBB_INSTALLED', true);

?>
I've tried it with my backup of the database, but still the same.
Can someone help me?
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
I think this bit is causing the error:
$dbms = 'mysql4';
The MySQL version is '5.0.45-community'.

I would recommend upgrading to phpBB3 anyway, but if you like version 2, there may be a way to fix it. I'm not sure what you will have to change $dbms to (Maybe another user can help here), but you could try this
$dbms = 'mysql';
That might work (It's worth a try.)
 

Chetz

Member
Messages
44
Reaction score
0
Points
6
Thanks TechAsh, but it doesn't seem to work.

I've tried changing that to a number of things, but I just get a basic 'phpBB : Critical Error
Could not connect to the database' error.

It must be with the server or my account.
 

Russ

<b>Retired *****</b>
Messages
3,168
Reaction score
2
Points
38
Go into your file manager, and use code editor on /home/chetz/public_html/phpBB2/db/mysql4.php and go to line 330,331 and paste them in.. Also I am moving this to a script support forum.
 
Status
Not open for further replies.
Top