MySQL: Critical Error (Linux Migration)

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
sanjaya5
Beiträge: 8
Registriert: So 30.Mai, 2004 21:18

MySQL: Critical Error (Linux Migration)

Beitrag von sanjaya5 »

Hello,

I just want to migrate my intranet from Windows-based (IIS) to Linux (Apache).

I have restore the DB and the PHP files. The DB is on. But when I try to run my intranet I got this error messages:

Code: Alles auswählen

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/WebIntranet/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/WebIntranet/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database
I am sure that the uname and pwd are ok. I am using phpBB 2.0.8a

Have you any idea.

Thanks in advance.

Regards
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Double check the settings in config.php for the right values.
And check if the database will really be mysql 4.x...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
sanjaya5
Beiträge: 8
Registriert: So 30.Mai, 2004 21:18

Beitrag von sanjaya5 »

Hello,

Yes...I have double check the config.php (the same like in windows...I just copy all contents to my new Linux folder). And I use mySQL 4.0.15.

Have another idea?

Thanks.
sanjaya5
Beiträge: 8
Registriert: So 30.Mai, 2004 21:18

Beitrag von sanjaya5 »

My config.php:

<?php


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

$dbms = 'mysql4';

$dbhost = 'localhost';
$dbname = 'WebIntranet';
$dbuser = 'root';
$dbpasswd = 'root';

$table_prefix = 'phpbb_';

define('PHPBB_INSTALLED', true);

?>

It's the same in Windows and Linux? Or am i wrong?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes it will be the same. But you can try 127.0.0.1 instead "localhost". This might work better.
And be sure the database name will really be case sensitive.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
sanjaya5
Beiträge: 8
Registriert: So 30.Mai, 2004 21:18

Beitrag von sanjaya5 »

I solved it. The problem was, I should restore the DB through sql-commands (or .sql file) instead of copy and paste the db-files self (it worked in windows and actually the mysql can also recognize the db), but anyhow the php cant build connection to the db.

Thanks anyway.
Antworten